
Resources:
Problem using Dynamic Programming to save time:
- 53. Maximum Subarray
- 121. Best Time to Buy and Sell Stock
- 122. Best Time to Buy and Sell Stock II
- 152. Maximum Product Subarray
- 198. House Robber
- 213. House Robber II
- 276. Paint Fence
- 312. Burst Balloons (Similar Problem: Matrix Chain Multiplication)
Problem like trapping water:
- 42. Trapping Rain Water
- 11. Container With Most Water
- 407. Trapping Rain Water II
- 238. Product of Array Except Self
Problem using buckets check:
Problem using factors:
Prolbem using elegant pointer solution:
- 160. Intersection of Two Linked Lists
- 26. Remove Duplicates from Sorted Array
- 328. Odd Even Linked List
- 223. Rectangle Area
- 28. Implement strStr()
- 566. Reshape the Matrix
- 243. Shortest Word Distance
- 447. Number of Boomerangs
- 276. Paint Fence
- 438. Find All Anagrams in a String (Love this Problem, good template)
- 455. Assign Cookies
- 475. Heaters
- 599. Minimum Index Sum of Two Lists
- 633. Sum of Square Numbers
- 246. Strobogrammatic Number
- 594. Longest Harmonious Subsequence
- 598. Range Addition II
- 581. Shortest Unsorted Continuous Subarray
- 624. Maximum Distance in Arrays
- 228. Summary Ranges
Problem using stack:
Problem using lambda expression:
Problem use matrix/array indexing tricks:
- 48. Rotate Image
- 419. Battleships in a Board
- 242. Valid Anagram
- 657. Judge Route Circle
- 345. Reverse Vowels of a String (Reversal is all about swap. Two pointer problem)
- 414. Third Maximum Number
Problem using recursion:
Problem use resversal:
Problem using the idea of data engineering:
Problem with easy logic but tricky with details.
- 69. Sqrt(x)
- 168. Excel Sheet Column Title
- 203. Remove Linked List Elements
- 476. Number Complement
- 374. Guess Number Higher or Lower
- 278. First Bad Version
- 83. Remove Duplicates from Sorted List
- 35. Search Insert Position
- 367. Valid Perfect Square
- 414. Third Maximum Number
- 475. Heaters
- 680. Valid Palindrome II
- 422. Valid Word Square
- 408. Valid Word Abbreviation
- 604. Design Compressed String Iterator
Problem using math tricks:
Design Problem:
Problem might fool you:
Bit Manipulation:
Tree Travesal:
SQL:
Elegant Solution:




近期评论