240 發(fā)簡(jiǎn)信
IP屬地:加州
  • LeetCode 277 [Find the Celebrity]

    原題 Suppose you are at a party with n people (labeled from 0 ton - 1) and...

  • LeetCode 361 [Bomb Enemy]

    原題 Given a 2D grid, each cell is either a wall 'W', an enemy 'E' or empt...

  • LeetCode 17 [Letter Combinations of a Phone Number]

    原題 給一個(gè)不包含01的數(shù)字字符串芳誓,每個(gè)數(shù)字代表一個(gè)字母花鹅,請(qǐng)返回其所有可能的字母組合。 下圖的手機(jī)按鍵圖,就表示了每個(gè)數(shù)字可以代表的字母。 樣例...

  • LeetCode 171 [Excel Sheet Column Number]

    原題 Given a column title as appear in an Excel sheet, return its correspo...

  • LeetCode 298 [Binary Tree Longest Consecutive Sequence]

    原題 給一個(gè)二叉樹,求其中最長(zhǎng)連續(xù)序列的長(zhǎng)度 樣例比如鳞骤,下面的樹,最長(zhǎng)序列為3->4->5演训,返回3 解題思路 遞歸求解弟孟,分別向左右子樹遞歸贝咙,判斷...

  • LeetCode 394 [Decode String]

    原題 給一段string样悟,解碼 樣例 解題思路 一個(gè)stack記錄倍數(shù) 一個(gè)stack記錄string 遇到"["添加倍數(shù)(因?yàn)楸稊?shù)可能是“12...

  • LintCode 144 [Interleaving Positive and Negative Numbers]

    原題 給出一個(gè)含有正整數(shù)和負(fù)整數(shù)的數(shù)組,重新排列成一個(gè)正負(fù)數(shù)交錯(cuò)的數(shù)組庭猩。 樣例給出數(shù)組[-1, -2, -3, 4, 5, 6]窟她,重新排序之后,...

  • LeetCode 389 [Find the Difference]

    原題 給出兩個(gè)字符串蔼水,只有一處不同震糖,一個(gè)字符串比兩一個(gè)多一個(gè)字符,找出這個(gè)字符 樣例 解題思路 合并兩個(gè)字符串趴腋,題目轉(zhuǎn)化為尋找單身狗 完整代碼

  • LeetCode 38 [Count and Say]

    原題 報(bào)數(shù)指的是吊说,按照其中的整數(shù)的順序進(jìn)行報(bào)數(shù)论咏,然后得到下一個(gè)數(shù)。如下所示:1, 11, 21, 1211, 111221, ...1 讀作 "...

個(gè)人介紹
The more you know, the more you realize you know nothing
亚洲A日韩AV无卡,小受高潮白浆痉挛av免费观看,成人AV无码久久久久不卡网站,国产AV日韩精品