Skip to content

hellomrsun/LeetCode-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-Algorithms

Algorithms:

  1. 3 Longest Substring Without Repeating Characters
  2. 20 Valid Parentheses
  3. 22 Generate Parentheses
  4. 47 Permutations II: Recursion
  5. 56 Merge Intervals
  6. 80 Remove Duplicates from Sorted Array II: Pointer
  7. 81 Search in Rotated Sorted Array II
  8. 98 Validate Binary Search Tree: DFS
  9. 111 Minimum Depth of Binary Tree: Queue
  10. 116 Populating Next Right Pointers in Each Node
  11. 133 Clone Graph: Dictionary
  12. 142 Linked List Cycle II
  13. 147 Insertion Sort List
  14. 150 Evaluate Reverse Polish Notation: Stack
  15. 173 Binary Search Tree Iterator: Stack
  16. 188 Best Time to Buy and Sell Stock IV: DP
  17. 205 Isomorphic Strings: Array
  18. 228 Summary Ranges
  19. 334 Increasing Triplet Subsequence
  20. 337 House Robber III: DP
  21. 394 Decode String: Stack
  22. 445 Add Two Numbers II: Stack
  23. 454 4Sum II: Dictionary
  24. 456 132 Pattern: Stack
  25. 458 Poor Pigs: Math Power
  26. 530 Minimum Absolute Difference in BST: Inorder traversal
  27. 557 Reverse Words in a String III: Stack
  28. 563 Binary Tree Tilt: PostOrder
  29. 593 Valid Square: HashSet
  30. 653 Two Sum IV Input is a BST: DFS
  31. 673 Number of Longest Increasing Subsequence
  32. 735 Asteroid Collision: Stack
  33. 799 Champgane Tower: DP
  34. 804 Unique Morse Code Words: HashSet
  35. 832 Flipping an Image
  36. 845 Longest Mountain in Array
  37. 849 Maximize Distance to Closest Person
  38. 858 Mirror Reflection
  39. 865 Smallest Subtree with all the Deepest Nodes: DFS
  40. 880 Decoded String at Index
  41. 938 Range Sum of BST: PreOrder
  42. 948 Bag of Tokens: Two-pointer
  43. 977 Squares of a Sorted Array: Two Pointer
  44. 1007 Minimum Domino Rotations For Equal Row
  45. 1026 Maximum Difference Between Node and Ancestor: DFS
  46. 1217 Minimum Cost to Move Chips to The Same Position: Modulo
  47. 1290 Convert Binary Number in a Linked List to Integer
  48. 1323 Maximum 69 Number: CharArray
  49. 1436 Destination City: Dictionary
  50. 1446 Consecutive Characters
  51. 1510 Stone Game IV: DP

Database:

  1. 595 Big Countries: OR or UNION
  2. 178 Rank Scores: dense_rank()