原创 Spring Outing

題目描述 You class are planning for a spring outing. N people are voting for a

原创 Numeric Keypad

題目描述 The numberic keypad on your mobile phone looks like below: 123 456 78

原创 LUCKY STRING

題目描述A string s is LUCKY if and only if the number of different characters

原创 簡單錯誤記錄

題目描述 開發一個簡單錯誤記錄功能小模塊,能夠記錄出錯的代碼所在的文件名稱和行號。  處理: 1.記錄最多8條錯誤記錄,對相同的錯誤記錄(即文件名稱

原创 linked-list-cycle

題目描述 Given a linked list, determine if it has a cycle in it. Follow up:Can

原创 reorder-list

題目描述 Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L

原创 word-break

題目描述 Given a string s and a dictionary of words dict, determine if s can b

原创 懂二進制

題目描述世界上有10種人,一種懂二進制,一種不懂。那麼你知道兩個int32整數m和n的二進制表達,有多少個位(bit)不同麼?  IDEA 將兩個數

原创 linked-list-cycle-ii

題目描述 Given a linked list, return the node where the cycle begins. If there

原创 棋子翻轉

題目描述 在4x4的棋盤上擺滿了黑白棋子,黑白兩色的位置和數目隨機其中左上角座標爲(1,1),右下角座標爲(4,4),現在依次有一些翻轉操作,要對一

原创 最大差值

題目描述 有一個長爲n的數組A,求滿足0≤a≤b<n的A[b]-A[a]的最大值。給定數組A及它的大小n,請返回最大差值。 IDEA 考點 貪心 通

原创 尋找Coder

題目描述 請設計一個高效算法,再給定的字符串數組中,找到包含"Coder"的字符串(不區分大小寫),並將其作爲一個新的數組返回。結果字符串的順序按照

原创 華爲機試

題目描述 撲克牌遊戲大家應該都比較熟悉了,一副牌由54張組成,含3~A,2各4張,小王1張,大王1張。牌面從小到大用如下字符和字符串表示(其中,小寫