Leetcode-solution-by-myself This the solution for laicode which are written by myself. Binary Search 14. Classical Binary Search 267. Search In Sorted Matrix I 17. Closest In Sorted Array 15. First Occurrence 561. Find the Kth Element in The Matrix 636. Smallest Element Larger than Target 20. Search In Unknown Sized Sorted Array Sorting Alogrithms 4. Selection Sort 258. Move 0s To The End I 11. Rainbow Sort LinkedList 653.Reverse Linked List 35. Reverse Linked List In Pairs 36. Middle Node Of Linked List 37. Check If Linked List Has A Cycle 414. Remove Linked List Elements 39. Insert In Sorted Linked List 40. Merge Two Sorted Linked Lists 41. ReOrder Linked List 29. Merge Sort Linked List 42. Partition Linked List 223. Add Two Numbers 306. Check If Linked List Is Palindrome Queue & Stack 小结 280. Sort With 2 Stacks 31. Queue By Two Stacks 32. Stack With min() BinaryTree 655. Pre-order Traversal Of Binary Tree (recursive) 44. Pre-order Traversal Of Binary Tree (iterative) 60. Height of Binary Tree 46. Check If Binary Tree Is Balanced 48. Symmetric Binary Tree 50. Tweaked Identical Binary Trees 54. Is Binary Search Tree Or Not 55. Get Keys In Binary Search Tree In Given Range 52. Search In Binary Search Tree 51. Insert In Binary Search Tree 53. Delete In Binary Search Tree Heap and Graph Search I : BFS 25. K Smallest In Unsorted Array 57. Get Keys In Binary Tree Layer By Layer 47. Check If Binary Tree Is Completed 26. Kth Smallest Number In Sorted Matrix DFS & Backtrack 66. All Valid Permutations Of Parentheses I(括号生成) 62. All Subsets I(全子集) 63. All Subsets II(全子集II) 64. All Permutations I(全排列) 65. All Permutations II 643. All Permutations of Subsets 640. All Subsets of Size K 641. All Subsets II of Size K HashTable and String 68. Missing Number I 652. Common Numbers Of Two Sorted Arrays(Array version) 395. Remove Certain Characters 397. Right Shift By N Characters 84. Reverse Words In A Sentence I 281. Remove Spaces 79. Remove Adjacent Repeated Characters I 396. Reverse String 649. String Replace (basic) Recursion 13. a to the power of b 121. Spiral Order Traverse I 122. Spiral Order Traverse II 126. Lowest Common Ancestor I 646. Store Number Of Nodes In Left Subtree Cross Training 115. Array Deduplication I 259. Move 0s To The End II 368. Lowest Common Ancestor Binary Search Tree I 180. 2 Sum 103. Longest Consecutive 1s 650. Common Numbers Of Two Arrays I(Array version) 651. Common Numbers Of Two Arrays II(Array version) 206. Majority Number I 33. Number Of Nodes 49. Identical Binary Tree 69. Missing Number II 76. All Unique Characters I 83. Encode Space 376. Ascending Triple I