Page Index - jiejackyzhang/leetcode-note GitHub Wiki
709 page(s) in this GitHub Wiki:
- Home
 - 1. Two Sum
 - Please reload this page
 - 10. Regular Expression Matching
 - Please reload this page
 - 100. Same Tree
 - Please reload this page
 - 101. Symmetric Tree
 - Please reload this page
 - 102. Binary Tree Level Order Traversal
 - Please reload this page
 - 103. Binary Tree Zigzag Level Order Traversal
 - Please reload this page
 - 104. Maximum Depth of Binary Tree
 - Please reload this page
 - 105. Construct Binary Tree from Preorder and Inorder Traversal
 - Please reload this page
 - 106. Construct Binary Tree from Inorder and Postorder Traversal
 - Please reload this page
 - 107. Binary Tree Level Order Traversal II
 - Please reload this page
 - 108. Convert Sorted Array to Binary Search Tree
 - Please reload this page
 - 109. Convert Sorted List to Binary Search Tree
 - Please reload this page
 - 11. Container With Most Water
 - Please reload this page
 - 110. Balanced Binary Tree
 - Please reload this page
 - 111. Minimum Depth of Binary Tree
 - Please reload this page
 - 112. Path Sum
 - Please reload this page
 - 113. Path Sum II
 - Please reload this page
 - 114. Flatten Binary Tree to Linked List
 - Please reload this page
 - 115. Distinct Subsequences
 - Please reload this page
 - 116. Populating Next Right Pointers in Each Node
 - Please reload this page
 - 117. Populating Next Right Pointers in Each Node II
 - Please reload this page
 - 118. Pascal's Triangle
 - Please reload this page
 - 119. Pascal's Triangle II
 - Please reload this page
 - 12. Integer to Roman
 - Please reload this page
 - 120. Triangle
 - Please reload this page
 - 121. Best Time to Buy and Sell Stock
 - Please reload this page
 - 122. Best Time to Buy and Sell Stock II
 - Please reload this page
 - 123. Best Time to Buy and Sell Stock III
 - Please reload this page
 - 124. Binary Tree Maximum Path Sum
 - Please reload this page
 - 125. Valid Palindrome
 - Please reload this page
 - 126. Word Ladder II
 - Please reload this page
 - 127. Word Ladder
 - Please reload this page
 - 128. Longest Consecutive Sequence
 - Please reload this page
 - 129. Sum Root to Leaf Numbers
 - Please reload this page
 - 13. Roman to Integer
 - Please reload this page
 - 130. Surrounded Regions
 - Please reload this page
 - 131. Palindrome Partitioning
 - Please reload this page
 - 132. Palindrome Partitioning II
 - Please reload this page
 - 133. Clone Graph
 - Please reload this page
 - 134. Gas Station
 - Please reload this page
 - 135. Candy
 - Please reload this page
 - 136. Single Number
 - Please reload this page
 - 137. Single Number II
 - Please reload this page
 - 138. Copy List with Random Pointer
 - Please reload this page
 - 139. Word Break
 - Please reload this page
 - 14. Longest Common Prefix
 - Please reload this page
 - 140. Word Break II
 - Please reload this page
 - 141. Linked List Cycle
 - Please reload this page
 - 142. Linked List Cycle II
 - Please reload this page
 - 143. Reorder List
 - Please reload this page
 - 144. Binary Tree Preorder Traversal
 - Please reload this page
 - 145. Binary Tree Postorder Traversal
 - Please reload this page
 - 146. LRU Cache
 - Please reload this page
 - 147. Insertion Sort List
 - Please reload this page
 - 148. Sort List
 - Please reload this page
 - 149. Max Points on a Line
 - Please reload this page
 - 15. 3Sum
 - Please reload this page
 - 150. Evaluate Reverse Polish Notation
 - Please reload this page
 - 151. Reverse Words in a String
 - Please reload this page
 - 152. Maximum Product Subarray
 - Please reload this page
 - 153. Find Minimum in Rotated Sorted Array
 - Please reload this page
 - 154. Find Minimum in Rotated Sorted Array II
 - Please reload this page
 - 155. Min Stack
 - Please reload this page
 - 157. Read N Characters Given Read4
 - Please reload this page
 - 158. Read N Characters Given Read4 II Call multiple times
 - Please reload this page
 - 159. Longest Substring with At Most Two Distinct Characters
 - Please reload this page
 - 16. 3Sum Closest
 - Please reload this page
 - 160. Intersection of Two Linked Lists
 - Please reload this page
 - 162. Find Peak Element
 - Please reload this page
 - 163. Missing Ranges
 - Please reload this page
 - 164. Maximum Gap
 - Please reload this page
 - 165. Compare Version Numbers
 - Please reload this page
 - 166. Fraction to Recurring Decimal
 - Please reload this page
 - 167. Two Sum II Input array is sorted
 - Please reload this page
 - 168. Excel Sheet Column Title
 - Please reload this page
 - 169. Majority Element
 - Please reload this page
 - 17. Letter Combinations of a Phone Number
 - Please reload this page
 - 171. Excel Sheet Column Number
 - Please reload this page
 - 172. Factorial Trailing Zeroes
 - Please reload this page
 - 173. Binary Search Tree Iterator
 - Please reload this page
 - 174. Dungeon Game
 - Please reload this page
 - 179. Largest Number
 - Please reload this page
 - 18. 4Sum
 - Please reload this page
 - 187. Repeated DNA Sequences
 - Please reload this page
 - 188. Best Time to Buy and Sell Stock IV
 - Please reload this page
 - 189. Rotate Array
 - Please reload this page
 - 19. Remove Nth Node From End of List
 - Please reload this page
 - 190. Reverse Bits
 - Please reload this page
 - 191. Number of 1 Bits
 - Please reload this page
 - 198. House Robber
 - Please reload this page
 - 199. Binary Tree Right Side View
 - Please reload this page
 - 2. Add Two Numbers
 - Please reload this page
 - 20. Valid Parentheses
 - Please reload this page
 - 200. Number of Islands
 - Please reload this page
 - 201. Bitwise AND of Numbers Range
 - Please reload this page
 - 202. Happy Number
 - Please reload this page
 - 203. Remove Linked List Elements
 - Please reload this page
 - 204. Count Primes
 - Please reload this page
 - 205. Isomorphic Strings
 - Please reload this page
 - 206. Reverse Linked List
 - Please reload this page
 - 207. Course Schedule
 - Please reload this page
 - 208. Implement Trie (Prefix Tree)
 - Please reload this page
 - 209. Minimum Size Subarray Sum
 - Please reload this page
 - 21. Merge Two Sorted Lists
 - Please reload this page
 - 210. Course Schedule II
 - Please reload this page
 - 211. Add and Search Word Data structure design
 - Please reload this page
 - 212. Word Search II
 - Please reload this page
 - 213. House Robber II
 - Please reload this page
 - 214. Shortest Palindrome
 - Please reload this page
 - 215. Kth Largest Element in an Array
 - Please reload this page
 - 216. Combination Sum III
 - Please reload this page
 - 217. Contains Duplicate
 - Please reload this page
 - 218. The Skyline Problem
 - Please reload this page
 - 219. Contains Duplicate II
 - Please reload this page
 - 22. Generate Parentheses
 - Please reload this page
 - 220. Contains Duplicate III
 - Please reload this page
 - 221. Maximal Square
 - Please reload this page
 - 222. Count Complete Tree Nodes
 - Please reload this page
 - 223. Rectangle Area
 - Please reload this page
 - 224. Basic Calculator
 - Please reload this page
 - 225. Implement Stack using Queues
 - Please reload this page
 - 226. Invert Binary Tree
 - Please reload this page
 - 227. Basic Calculator II
 - Please reload this page
 - 228. Summary Ranges
 - Please reload this page
 - 229. Majority Element II
 - Please reload this page
 - 23. Merge k Sorted Lists
 - Please reload this page
 - 230. Kth Smallest Element in a BST
 - Please reload this page
 - 231. Power of Two
 - Please reload this page
 - 232. Implement Queue using Stacks
 - Please reload this page
 - 233. Number of Digit One
 - Please reload this page
 - 234. Palindrome Linked List
 - Please reload this page
 - 235. Lowest Common Ancestor of a Binary Search Tree
 - Please reload this page
 - 236. Lowest Common Ancestor of a Binary Tree
 - Please reload this page
 - 237. Delete Node in a Linked List
 - Please reload this page
 - 238. Product of Array Except Self
 - Please reload this page
 - 239. Sliding Window Maximum
 - Please reload this page
 - 24. Swap Nodes in Pairs
 - Please reload this page
 - 240. Search a 2D Matrix II
 - Please reload this page
 - 241. Different Ways to Add Parentheses
 - Please reload this page
 - 242. Valid Anagram
 - Please reload this page
 - 246. Strobogrammatic Number
 - Please reload this page
 - 247. Strobogrammatic Number II
 - Please reload this page
 - 248. Strobogrammatic Number III
 - Please reload this page
 - 25. Reverse Nodes in k Group
 - Please reload this page
 - 256. Paint House
 - Please reload this page
 - 257. Binary Tree Paths
 - Please reload this page
 - 258. Add Digits
 - Please reload this page
 - 26. Remove Duplicates from Sorted Array
 - Please reload this page
 - 260. Single Number III
 - Please reload this page
 - 263. Ugly Number
 - Please reload this page
 - 264. Ugly Number II
 - Please reload this page
 - 265. Paint House II
 - Please reload this page
 - 268. Missing Number
 - Please reload this page
 - 269. Alien Dictionary
 - Please reload this page
 - 27. Remove Element
 - Please reload this page
 - 270. Closest Binary Search Tree Value
 - Please reload this page
 - 272. Closest Binary Search Tree Value II
 - Please reload this page
 - 273. Integer to English Words
 - Please reload this page
 - 274. H Index
 - Please reload this page
 - 275. H Index II
 - Please reload this page
 - 276. Paint Fence
 - Please reload this page
 - 278. First Bad Version
 - Please reload this page
 - 279. Perfect Squares
 - Please reload this page
 - 28. Implement strStr()
 - Please reload this page
 - 282. Expression Add Operators
 - Please reload this page
 - 283. Move Zeroes
 - Please reload this page
 - 284. Peeking Iterator
 - Please reload this page
 - 287. Find the Duplicate Number
 - Please reload this page
 - 289. Game of Life
 - Please reload this page
 - 29. Divide Two Integers
 - Please reload this page
 - 290. Word Pattern
 - Please reload this page
 - 291. Word Pattern II
 - Please reload this page
 - 292. Nim Game
 - Please reload this page
 - 293. Flip Game
 - Please reload this page
 - 295. Find Median from Data Stream
 - Please reload this page
 - 296. Best Meeting Point
 - Please reload this page
 - 297. Serialize and Deserialize Binary Tree
 - Please reload this page
 - 299. Bulls and Cows
 - Please reload this page
 - 3. Longest Substring Without Repeating Characters
 - Please reload this page
 - 30. Substring with Concatenation of All Words
 - Please reload this page
 - 300. Longest Increasing Subsequence
 - Please reload this page
 - 301. Remove Invalid Parentheses
 - Please reload this page
 - 302. Smallest Rectangle Enclosing Black Pixels
 - Please reload this page
 - 303. Range Sum Query Immutable
 - Please reload this page
 - 304. Range Sum Query 2D Immutable
 - Please reload this page
 - 305. Number of Islands II
 - Please reload this page
 - 306. Additive Number
 - Please reload this page
 - 307. Range Sum Query Mutable
 - Please reload this page
 - 309. Best Time to Buy and Sell Stock with Cooldown
 - Please reload this page
 - 31. Next Permutation
 - Please reload this page
 - 310. Minimum Height Trees
 - Please reload this page
 - 312. Burst Balloons
 - Please reload this page
 - 313. Super Ugly Number
 - Please reload this page
 - 315. Count of Smaller Numbers After Self
 - Please reload this page
 - 316. Remove Duplicate Letters
 - Please reload this page
 - 317. Shortest Distance from All Buildings
 - Please reload this page
 - 318. Maximum Product of Word Lengths
 - Please reload this page
 - 319. Bulb Switcher
 - Please reload this page
 - 32. Longest Valid Parentheses
 - Please reload this page
 - 321. Create Maximum Number
 - Please reload this page
 - 322. Coin Change
 - Please reload this page
 - 324. Wiggle Sort II
 - Please reload this page
 - 326. Power of Three
 - Please reload this page
 - 327. Count of Range Sum
 - Please reload this page
 - 328. Odd Even Linked List
 - Please reload this page
 - 329. Longest Increasing Path in a Matrix
 - Please reload this page
 - 33. Search in Rotated Sorted Array
 - Please reload this page
 - 330. Patching Array
 - Please reload this page
 - 331. Verify Preorder Serialization of a Binary Tree
 - Please reload this page
 - 332. Reconstruct Itinerary
 - Please reload this page
 - 334. Increasing Triplet Subsequence
 - Please reload this page
 - 335. Self Crossing
 - Please reload this page
 - 336. Palindrome Pairs
 - Please reload this page
 - 337. House Robber III
 - Please reload this page
 - 338. Counting Bits
 - Please reload this page
 - 34. Search for a Range
 - Please reload this page
 - 340. Longest Substring with At Most K Distinct Characters
 - Please reload this page
 - 341. Flatten Nested List Iterator
 - Please reload this page
 - 342. Power of Four
 - Please reload this page
 - 343. Integer Break
 - Please reload this page
 - 344. Reverse String
 - Please reload this page
 - 345. Reverse Vowels of a String
 - Please reload this page
 - 347. Top K Frequent Elements
 - Please reload this page
 - 349. Intersection of Two Arrays
 - Please reload this page
 - 35. Search Insert Position
 - Please reload this page
 - 350. Intersection of Two Arrays II
 - Please reload this page
 - 352. Data Stream as Disjoint Intervals
 - Please reload this page
 - 354. Russian Doll Envelopes
 - Please reload this page
 - 357. Count Numbers with Unique Digits
 - Please reload this page
 - 358. Rearrange String k Distance Apart
 - Please reload this page
 - 36. Valid Sudoku
 - Please reload this page
 - 363. Max Sum of Rectangle No Larger Than K
 - Please reload this page
 - 367. Valid Perfect Square
 - Please reload this page
 - 368. Largest Divisible Subset
 - Please reload this page
 - 37. Sudoku Solver
 - Please reload this page
 - 371. Sum of Two Integers
 - Please reload this page
 - 372. Super Pow
 - Please reload this page
 - 373. Find K Pairs with Smallest Sums
 - Please reload this page
 - 374. Guess Number Higher or Lower
 - Please reload this page
 - 375. Guess Number Higher or Lower II
 - Please reload this page
 - 376. Wiggle Subsequence
 - Please reload this page
 - 377. Combination Sum IV
 - Please reload this page
 - 378. Kth Smallest Element in a Sorted Matrix
 - Please reload this page
 - 38. Count and Say
 - Please reload this page
 - 380. Insert Delete GetRandom O(1)
 - Please reload this page
 - 381. Insert Delete GetRandom O(1) Duplicates allowed
 - Please reload this page
 - 382. Linked List Random Node
 - Please reload this page
 - 383. Ransom Note
 - Please reload this page
 - 384. Shuffle an Array
 - Please reload this page
 - 385. Mini Parser
 - Please reload this page
 - 386. Lexicographical Numbers
 - Please reload this page
 - 387. First Unique Character in a String
 - Please reload this page
 - 388. Longest Absolute File Path
 - Please reload this page
 - 389. Find the Difference
 - Please reload this page
 - 39. Combination Sum
 - Please reload this page
 - 390. Elimination Game
 - Please reload this page
 - 391. Perfect Rectangle
 - Please reload this page
 - 392. Is Subsequence
 - Please reload this page
 - 393. UTF 8 Validation
 - Please reload this page
 - 394. Decode String
 - Please reload this page
 - 395. Longest Substring with At Least K Repeating Characters
 - Please reload this page
 - 396. Rotate Function
 - Please reload this page
 - 397. Integer Replacement
 - Please reload this page
 - 398. Random Pick Index
 - Please reload this page
 - 399. Evaluate Division
 - Please reload this page
 - 4. Median of Two Sorted Arrays
 - Please reload this page
 - 40. Combination Sum II
 - Please reload this page
 - 400. Nth Digit
 - Please reload this page
 - 401. Binary Watch
 - Please reload this page
 - 402. Remove K Digits
 - Please reload this page
 - 403. Frog Jump
 - Please reload this page
 - 404. Sum of Left Leaves
 - Please reload this page
 - 405. Convert a Number to Hexadecimal
 - Please reload this page
 - 406. Queue Reconstruction by Height
 - Please reload this page
 - 407. Trapping Rain Water II
 - Please reload this page
 - 409. Longest Palindrome
 - Please reload this page
 - 41. First Missing Positive
 - Please reload this page
 - 410. Split Array Largest Sum
 - Please reload this page
 - 412. Fizz Buzz
 - Please reload this page
 - 413. Arithmetic Slices
 - Please reload this page
 - 414. Third Maximum Number
 - Please reload this page
 - 415. Add Strings
 - Please reload this page
 - 416. Partition Equal Subset Sum
 - Please reload this page
 - 417. Pacific Atlantic Water Flow
 - Please reload this page
 - 42. Trapping Rain Water
 - Please reload this page
 - 421. Maximum XOR of Two Numbers in an Array
 - Please reload this page
 - 425. Word Squares
 - Please reload this page
 - 43. Multiply Strings
 - Please reload this page
 - 437. Path Sum III
 - Please reload this page
 - 438. Find All Anagrams in a String
 - Please reload this page
 - 44. Wildcard Matching
 - Please reload this page
 - 441. Arranging Coins
 - Please reload this page
 - 444. Sequence Reconstruction
 - Please reload this page
 - 45. Jump Game II
 - Please reload this page
 - 46. Permutations
 - Please reload this page
 - 464. Can I Win
 - Please reload this page
 - 47. Permutations II
 - Please reload this page
 - 48. Rotate Image
 - Please reload this page
 - 49. Group Anagrams
 - Please reload this page
 - 5. Longest Palindromic Substring
 - Please reload this page
 - 50. Pow(x, n)
 - Please reload this page
 - 51. N Queens
 - Please reload this page
 - 52. N Queens II
 - Please reload this page
 - 53. Maximum Subarray
 - Please reload this page
 - 54. Spiral Matrix
 - Please reload this page
 - 55. Jump Game
 - Please reload this page
 - 56. Merge Intervals
 - Please reload this page
 - 57. Insert Interval
 - Please reload this page
 - 58. Length of Last Word
 - Please reload this page
 - 59. Spiral Matrix II
 - Please reload this page
 - 6. ZigZag Conversion
 - Please reload this page
 - 60. Permutation Sequence
 - Please reload this page
 - 61. Rotate List
 - Please reload this page
 - 62. Unique Paths
 - Please reload this page
 - 63. Unique Paths II
 - Please reload this page
 - 64. Minimum Path Sum
 - Please reload this page
 - 65. Valid Number
 - Please reload this page
 - 66. Plus One
 - Please reload this page
 - 67. Add Binary
 - Please reload this page
 - 68. Text Justification
 - Please reload this page
 - 69. Sqrt(x)
 - Please reload this page
 - 7. Reverse Integer
 - Please reload this page
 - 70. Climbing Stairs
 - Please reload this page
 - 71. Simplify Path
 - Please reload this page
 - 72. Edit Distance
 - Please reload this page
 - 73. Set Matrix Zeroes
 - Please reload this page
 - 74. Search a 2D Matrix
 - Please reload this page
 - 75. Sort Colors
 - Please reload this page
 - 76. Minimum Window Substring
 - Please reload this page
 - 77. Combinations
 - Please reload this page
 - 78. Subsets
 - Please reload this page
 - 79. Word Search
 - Please reload this page
 - 8. String to Integer (atoi)
 - Please reload this page
 - 80. Remove Duplicates from Sorted Array II
 - Please reload this page
 - 81. Search in Rotated Sorted Array II
 - Please reload this page
 - 82. Remove Duplicates from Sorted List II
 - Please reload this page
 - 83. Remove Duplicates from Sorted List
 - Please reload this page
 - 84. Largest Rectangle in Histogram
 - Please reload this page
 - 85. Maximal Rectangle
 - Please reload this page
 - 86. Partition List
 - Please reload this page
 - 87. Scramble String
 - Please reload this page
 - 88. Merge Sorted Array
 - Please reload this page
 - 89. Gray Code
 - Please reload this page
 - 9. Palindrome Number
 - Please reload this page
 - 90. Subsets II
 - Please reload this page
 - 91. Decode Ways
 - Please reload this page
 - 92. Reverse Linked List II
 - Please reload this page
 - 93. Restore IP Addresses
 - Please reload this page
 - 94. Binary Tree Inorder Traversal
 - Please reload this page
 - 95. Unique Binary Search Trees II
 - Please reload this page
 - 96. Unique Binary Search Trees
 - Please reload this page
 - 97. Interleaving String
 - Please reload this page
 - 98. Validate Binary Search Tree
 - Please reload this page
 - 99. Recover Binary Search Tree
 - Please reload this page