awesome-java-leetcode

awesome-java-leetcode

我如今是一名Android Developer,大學的我曾是一名ACMer,我一直認為數(shù)據(jù)結構和算法是作為一名程序員必須掌握和善于利用的,為了不讓數(shù)據(jù)結構和算法淡出我的記憶,所以我打算重拾LeetCode之Algorithm,語言選擇的是Java,題庫會一點點完善起來,按簡單,中等,困難分類,相應難度下按題號排序,源代碼在src目錄中,相關解題都在note目錄中,想要學習數(shù)據(jù)結構和算法或打算刷LeetCode的小伙伴們歡迎star哦。

如今有機會面試Facebook,附上LeetCode上Facebook的面試題目序號,希望可以幫助到以后想入Facebook的小伙伴:-)

1,10,13,15,17,20,23,25,26,28,33,38,43,44,49,50,56,57,67,68,69,71,75,76
78,79,80,85,88,90,91,98,102,117,121,125,127,128,133,139,146,157,158,161
168,173,200,206,208,209,210,211,215,218,221,234,235,236,238,252,253,257
261,265,269,273,274,275,277,278,282,283,285,286,297,301,311,314,325,334
341,377,380,398,404,410,461,477,494,523,525,534,535,543,554

如果想知道更多公司LeetCode面試題,可以參看Companies.md。

附上鎮(zhèn)樓詩:

明有科舉八股,今有LeetCode。
八股定格式而取文采心意,LeetCode定題目且重答案背誦。
美其名曰:"practice makes perfect."
為何今不如古?
非也非也,
科舉為國取士,LeetCode為Google篩碼工,各取所需也。

Easy

# Title Tag
1 Two Sum Array, Hash Table
7 Reverse Integer Math
9 Palindrome Number Math
13 Roman to Integer Math, String
14 Longest Common Prefix String
20 Valid Parentheses Stack, String
21 Merge Two Sorted Lists Linked List
26 Remove Duplicates from Sorted Array Array, Two Pointers
27 Remove Element Array, Two Pointers
28 Implement strStr() Two Pointers, String
35 Search Insert Position String
38 Count and Say String
53 Maximum Subarray Array, Dynamic Programming, Divide and Conquer
58 Length of Last Word String
66 Plus One Array, Math
67 Add Binary Math, String
69 Sqrt(x) Binary Search, Math
70 Climbing Stairs Dynamic Programming
83 Remove Duplicates from Sorted List Linked List
88 Merge Sorted Array Array, Two Pointers
100 Same Tree Tree, Depth-first Search
101 Symmetric Tree Tree, Depth-first Search, Breadth-first Search
104 Maximum Depth of Binary Tree Tree, Depth-first Search
107 Binary Tree Level Order Traversal II Tree, Breadth-first Search
108 Convert Sorted Array to Binary Search Tree Tree, Depth-first Search
110 Balanced Binary Tree Tree, Depth-first Search
111 Minimum Depth of Binary Tree Tree, Depth-first Search, Breadth-first Search
112 Path Sum Tree, Depth-first Search
118 Pascal's Triangle Array
119 Pascal's Triangle II Array
121 Best Time to Buy and Sell Stock Array, Dynamic Programmin
122 Best Time to Buy and Sell Stock II Array, Greedy
543 Diameter of Binary Tree Tree

Medium

# Title Tag
2 Add Two Numbers Linked List, Math
3 Longest Substring Without Repeating Characters Hash Table, Two Pointers, String
5 Longest Palindromic Substring String
8 String to Integer (atoi) Math, String
15 3Sum Array, Two Pointers
17 Letter Combinations of a Phone Number String, Backtracking
19 Remove Nth Node From End of List Linked List, Two Pointers
33 Search in Rotated Sorted Array Arrays, Binary Search
43 Multiply Strings Math, String
49 Group Anagrams Hash Table, String
50 Pow(x, n) Math, Binary Search
56 Merge Intervals Array, Sort
554 Brick Wall Hash Table

Hard

# Title Tag
4 Median of Two Sorted Arrays Array, Binary Search, Divide and Conquer
10 Regular Expression Matching String, Dynamic Programming, Backtracking
23 Merge k Sorted Lists Linked List, Divide and Conquer, Heap
25 Reverse Nodes in k-Group Linked List
44 Reverse Nodes in k-Group String, Dynamic Programming, Backtracking, Greedy
57 Insert Interval Array, Sort
68 Text Justification String
最后編輯于
?著作權歸作者所有,轉載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

  • Android 自定義View的各種姿勢1 Activity的顯示之ViewRootImpl詳解 Activity...
    passiontim閱讀 179,007評論 25 709
  • 背景 一年多以前我在知乎上答了有關LeetCode的問題, 分享了一些自己做題目的經(jīng)驗。 張土汪:刷leetcod...
    土汪閱讀 12,912評論 0 33
  • 是什么感覺呢? 她喜歡玉米,喜歡烤翅,喜歡老爺爺。 所以,她不喜歡麥辣雞腿,不喜歡巨無霸。 可我還是喜歡她。害羞害羞。
    KingBryan閱讀 223評論 0 0
  • 一、“誰看清我的真面目,似笑非笑不流淚的痛哭” 黑夜里,燈火通明,盡管夜已深,游樂場里也還是熱鬧如常。 忽然間,一...
    易塵歌閱讀 770評論 9 5
  • 黑白的光影 憂傷的琴音 戰(zhàn)爭如何傷人 看安娜完成不了和開始不了的兩段情 電影名叫《弗蘭茲》 源于片中僅存于相框與回...
    風信子也閱讀 1,981評論 0 0

友情鏈接更多精彩內(nèi)容