├── .github └── ISSUE_TEMPLATE │ └── add-a-problem.yml ├── .gitignore ├── CONTRIBUTING.md ├── Easy ├── 1. Two Sum │ ├── README.md │ ├── Solution.cpp │ ├── Solution.cs │ ├── Solution.java │ ├── Solution.js │ ├── Solution.php │ ├── Solution.py │ ├── Solution.rb │ └── Solution.ts ├── 101. Symmetric Tree │ ├── Solution.java │ ├── Solution.py │ └── Solution.rb ├── 104. Maximum Depth of Binary Tree │ ├── README.md │ └── Recursion - 1 │ │ ├── Solution.cpp │ │ ├── Solution.ex │ │ ├── Solution.java │ │ └── Solution.py ├── 108. Convert Sorted Array to Binary Search Tree │ ├── README.md │ ├── Solution.cpp │ ├── Solution.java │ └── Solution.py ├── 111. Minimum Depth of Binary Tree │ ├── README.md │ └── sol.py ├── 119. Pascal's Triangle II │ ├── READme.md │ └── solution.py ├── 121. Best Time to buy and sell stock │ ├── README.md │ ├── Solutioin.js │ ├── Solution.java │ └── sol.md ├── 122. Best Time to Buy and Sell Stock II │ └── 122. Best Time to Buy and Sell Stock II.cpp ├── 13. Roman to Integer │ ├── README.md │ ├── Roman to Integer.cpp │ ├── Solution.java │ └── Solution.py ├── 1337. K Weakest Rows in a Matrix │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 1342. Number of Steps to Reduce a Number to Zero │ ├── README.md │ └── Solution.java ├── 1356. Sort Integers by The Number of 1 Bits │ ├── sol.md │ └── solution.py ├── 14. Longest Common Prefix │ ├── solution.cpp │ └── solution.java ├── 141. Linked List Cycle │ ├── explanantion.md │ ├── sol.cpp │ └── sol.java ├── 141.Linked List Cycle │ ├── README.md │ ├── solution.cpp │ └── solution.java ├── 144. Binary Tree Preorder Traversal │ ├── Solution.java │ └── Solution.kt ├── 145. Binary Tree Postorder Traversal │ ├── Solution.java │ └── Solution.kt ├── 1470. Shuffle the Array │ ├── README.md │ └── Solution.java ├── 1480. Running Sum of 1d Array │ └── Solution.java ├── 1486. XOR Operation in an Array │ ├── README.md │ └── Solution.java ├── 1512. Number of Good Pairs │ ├── NoOfGP.java │ ├── explanation.md.txt │ └── sol.cpp ├── 1523. Count Odd Numbers in an Interval Range │ ├── README.md │ └── Simple Math │ │ ├── SimpleMath.cpp │ │ ├── SimpleMath.java │ │ └── SimpleMath.py ├── 1672. Richest Customer Wealth │ ├── Solution.cpp │ └── Solution.java ├── 169. Majority Element │ ├── solution.cpp │ ├── solution.java │ ├── solution.md │ └── solution.py ├── 1720. Decode XORed Array │ ├── README.md │ └── Solution.java ├── 1920. Build Array from Permutation │ └── Solution.java ├── 1929. Concatenation of Array │ ├── Solution.cpp │ └── Solution.java ├── 20. Valid Parentheses │ └── Solution.java ├── 2011. Final Value of Variable After Performing Operations │ └── Solution.java ├── 206. Reverse Linked List │ ├── Solution.java │ └── Solution.kt ├── 217. Contains Duplicate │ ├── Solution.java │ ├── Solution.js │ └── Solution.kt ├── 222. Count complete Tree Node │ ├── Solution.java │ └── sol.md ├── 226. Invert Binary Tree │ ├── Solution.java │ └── Solution.kt ├── 232. Implement Queue using Stacks │ └── MyQueue.java ├── 235. Lowest Common Ancestor of a Binary Search Tree │ └── Solution.java ├── 2373. Largest Local Values in a Matrix │ ├── README.md │ └── Solution.java ├── 242. Valid Anagram │ └── Solution.js ├── 2423. Remove Letter To Equalize Frequency │ ├── Readme.md │ └── Solution.py ├── 2591. Distribute Money to Maximum Children │ ├── Readme.md │ └── Solution.cpp ├── 26. Remove Duplicates from Sorted Array │ ├── README.md │ ├── Solution.cpp │ ├── Solution.java │ └── Solution.js ├── 2703. Return Length of Arguments Passed │ ├── README.md │ └── solution.js ├── 326. Power of Three │ ├── README.md │ └── Solution.java ├── 342. Power of Four │ ├── Approach 1 │ │ ├── Readme.md │ │ ├── Solution.cpp │ │ └── Solution.java │ ├── Solution.cpp │ └── Solution.java ├── 344. Reverse String │ ├── Solution.cpp │ ├── Solution.java │ └── Solution.js ├── 389. Find the Difference │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 392. Is Subsequence │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 557. Reverse Words in a String III │ ├── README.md │ ├── solution.dart │ ├── solution.java │ ├── solution.js │ └── solution.py ├── 58. Length of Last Word │ ├── Length_of_last_word.js │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 606. Construct String from Binary Tree │ └── README.md ├── 637. Average of Levels in Binary Tree │ ├── README.md │ ├── Solution.cpp │ ├── Solution.java │ └── Solution.py ├── 653. Two Sum IV - Input is a BST │ └── Solution.java ├── 700. Search in a Binary Search Tree │ └── Solution.java ├── 706. Design HashMap │ └── solution.js ├── 73. Set Matrix Zeroes │ └── Solution.java ├── 746.Min Cost Climbing Stairs │ ├── Min Cost Climbing Stairs.cpp │ ├── READme.md │ ├── solution.java │ └── solution.py ├── 844. Backspace String Compare │ └── Solution.js ├── 88. Merge Sorted Array │ ├── README.md │ └── Solution.cpp ├── 896. Monotonic Array │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 9. Palindrome Number │ ├── README.md │ ├── Solution.cpp │ ├── Solution.java │ ├── Solution.js │ ├── Solution.py │ └── Solution.rb ├── 905. Sort Array by Parity │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 94. Binary Tree Inorder Traversal │ ├── README.md │ ├── Solution.java │ └── Solution.rb └── README.md ├── Hard ├── 10. Regular Expression Matching │ ├── README.md │ └── sol.py ├── 1095. Find in Mountain Array │ ├── READEME.md │ └── solution.py ├── 115. Distinct Subsequences │ ├── Approach 1 │ │ ├── sol.md │ │ ├── solution.go │ │ ├── solution.py │ │ ├── solution.rust │ │ └── solution.scala │ ├── README.md │ ├── solution.cpp │ └── solution.java ├── 1203. Sort Items by Groups Respecting Dependencies │ ├── sol.java │ └── sol.md ├── 1220. Count Vowels Permutation │ ├── readme.md │ └── solution.py ├── 1269. Number of Ways to Stay in the Same Place After Some Steps │ ├── Readme.md │ └── solution.py ├── 127. Word Ladder │ ├── README.md │ └── Solution.java ├── 1326. Min no of Taps to Open to Water a Garden │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 135. Candy │ ├── Approach 1 │ │ ├── Readme.md │ │ ├── sloution.java │ │ └── solution.cpp │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 1359. Count All Valid Pickup and Delivery Options │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 1420. build array where you can find maximum exactly k comparison │ ├── Solution.cpp │ ├── Solution.java │ └── Solution.md ├── 1425. Constrained Subsequence Sum │ ├── sol.cpp │ └── sol.java ├── 1458. Max Dot Product of Two Subsequences │ ├── solution.cpp │ ├── solution.java │ ├── solution.md │ └── solution.py ├── 1489. Find Critical and Pseudo-Critical Edges in Min Spanning Tree │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 1793. Maximum Score of a Good Subarray │ ├── README.md │ └── Solution.java ├── 2009. Minimum Number of Operations to Make Array Continuous │ ├── README.md │ └── solution.py ├── 2050. Parallel Courses III │ ├── Reademe.md │ └── solution.py ├── 2141. Maximum Running Time │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 2227. Encrypt and Decrypt String │ ├── README.md │ └── solution.py ├── 2251. Number Of Flowers In Full Bloom │ ├── Solution.cpp │ ├── Solution.java │ └── Solution.md ├── 233. Number of Digit One │ ├── README.md │ └── Sol.java ├── 2366. Min Replacements to Sort an Array │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 239. Sliding Window Max │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 25. Reverse Nodes in k-Group │ └── ListNode.java ├── 273. Integer to English Words │ ├── README.md │ └── Solution.java ├── 2742. Painting the Walls │ ├── Readme.md │ └── solution.py ├── 332. Reconstruct Itinerary │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 34. Find First and Last Position of Element in Sorted Array │ ├── sol.cpp │ ├── sol.java │ ├── sol.md │ └── sol.py ├── 37.Sudoku Solver │ ├── README.md │ └── Sol3.java ├── 4. Median of Two Sorted Arrays │ ├── New approach[Arraylist] │ │ ├── Solution.java │ │ └── sol.md │ ├── New approach[add two array] │ │ └── Solution.java │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 41. First Missing Positive │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 42. Trapping Rain Water │ ├── Approach 1 │ │ ├── sol.md │ │ └── solution.py │ ├── sol.js │ └── sol.md ├── 664. Strange Printer │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 68. Test Justification │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 72. Edit Distance │ ├── Levenshtein │ │ ├── README.md │ │ ├── Solution.java │ │ └── images │ │ │ ├── finding-distance-table.png │ │ │ ├── finding-distance.png │ │ │ ├── intialization-table.png │ │ │ ├── intialization.png │ │ │ └── levenshtein-distance.png │ └── README.md ├── 76. Minimum Window Substring │ ├── README.md │ └── Sol1.java ├── 847. Shortest Path Visiting all Nodes │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 920. Number of Music Playlists │ ├── sol.cpp │ ├── sol.java │ └── sol.md └── README.md ├── LICENSE ├── Medium ├── 1048. Longest String Chain │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 1081. Smallest SubSequence of Distinct Characters │ ├── sol.java │ └── sol.md ├── 11. Container With Most Water │ ├── README.md │ ├── Solution.cpp │ └── Solution.java ├── 12. Integer To Roman │ └── Solution.js ├── 122. Best Time to Buy and Sell Stock II │ ├── sol.md │ └── solution.cpp ├── 134. Gas Station │ ├── Readme.md │ ├── Solution.cpp │ └── Solution.java ├── 134.Gas Station │ ├── solution.cpp │ ├── solution.java │ └── solution.py ├── 1361. Validate Binary Tree Nodes │ ├── Readme.md │ └── solution.py ├── 142. LinkedList Cycle II │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 1448. Count Good Nodes in Binary Tree │ ├── README.md │ └── Solution.java ├── 146. LRU Cache │ ├── README.md │ └── Solution.java ├── 15. 3sum │ ├── README.md │ ├── solution.cpp │ └── solution.java ├── 15.3Sum │ ├── Solution.java │ ├── solution.cpp │ └── solution.md ├── 1503. Last Moment Before All Ants Fall Out of a Plank │ ├── README.md │ └── Solution.java ├── 151. Reverse Words in a String │ ├── Approach 1 │ │ ├── Solution.py │ │ └── sol.md │ ├── Solution.java │ └── sol.md ├── 153. Find Minimum in Rotated Sorted Array │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 1584. Min Cost to Connect All Dots │ ├── sol.java │ └── sol.md ├── 1631. Path With Minimum Effort │ ├── sol.java │ └── sol.md ├── 1647. Min Deletions to Make Char Frequencies Unique │ ├── sol.java │ └── sol.md ├── 1658. Minimum Operations to Reduce X to Zero │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 1695. Maximum Erasure Value │ ├── README.md │ └── sol.cpp ├── 172. Factorial Trailing Zeroes │ ├── Solution.java │ └── sol.md ├── 179. Largest Number │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 18. 4Sum │ └── Solution.java ├── 189. Rotate Array │ ├── README.md │ └── Solution.java ├── 19. Remove nth Node From the End │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 1996. The Number of Weak Characters in the Game │ ├── README.md │ ├── Solution.cpp │ ├── Solution.java │ └── Solution.py ├── 2. Add Two Numbers │ ├── Approach 1 │ │ ├── Readme.md │ │ ├── Solution..cpp │ │ └── Solution.java │ ├── Solution02.java │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 200. Number of Islands │ ├── README.md │ ├── Solution.cpp │ └── Solution.java ├── 2038. Remove Colored Pieces if Both Neighbors are the Same Color │ ├── Readme.md │ ├── Solution.cpp │ └── Solution.java ├── 2038. Remove Colored Pieces if │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 204.CountPrimes │ ├── Count-Primes.java │ └── README.md ├── 215. Kth Largest Element in an Array │ ├── Solution.java │ └── Solution.md ├── 2186. Minimum Number of Steps to Make Two Strings Anagram II │ ├── Solution.java │ └── sol.md ├── 22. Generate Parentheses │ ├── README.md │ └── Solution.java ├── 229. MajorityElement-ll │ ├── README.md │ ├── Solution.cpp │ └── Solution.java ├── 238. Product of Array Except Self │ ├── sol.cpp │ └── sol.md ├── 2433. Find The Original Array of Prefix Xor │ ├── Readme.md │ └── Solution.cpp ├── 2707. Extra Chars in a String │ ├── sol.java │ └── sol.md ├── 274. H-Index │ ├── Readme.md │ ├── Solution.cpp │ └── Solution.java ├── 287. Find Duplicate Number │ ├── New Approach │ │ ├── Solution.java │ │ └── sol.md │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 29. Divide Two Integers │ ├── solution.cpp │ └── solution.md ├── 3. Longest Substring Without Repeating Characters │ └── solution.java ├── 316. Remove Duplicate Letters │ ├── sol.java │ └── sol.md ├── 328. Odd Even Linked List │ ├── README.md │ └── sol.py ├── 33. Search in Rotated Sorted Array │ ├── Solution.java │ └── Solutions.java ├── 34. First and Last Position of Element in an Array │ ├── New Approach │ │ ├── Solution.java │ │ └── sol.md │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 341. Flatten Nested List Iterator │ ├── soln.cpp │ ├── soln.java │ └── soln.py ├── 343. Integer Break │ ├── solution.cpp │ ├── solution.java │ ├── solution.md │ └── solution.py ├── 36. Valid Sudoku │ ├── README.md │ └── Solution.java ├── 380. Insert Delete GetRandom O(1) │ └── RandomizedSet.Java ├── 39. Combination Sum │ ├── README.md │ └── Solution.java ├── 40. Combination Sum II │ ├── README.md │ └── Solution.java ├── 429. N-ary Tree Level Order Traversal │ └── README.md ├── 43. Multiply Strings │ ├── README.md │ └── Solution.java ├── 456. 132 Pattern │ ├── README.md │ └── sol.py ├── 47. Permutations II │ ├── README.md │ └── Solution.java ├── 48. Rotate Image │ ├── README.md │ ├── Solution.cpp │ └── Solution.java ├── 5. Longest Palindromic String │ └── longestPalindromic.cpp ├── 5. Longest Palindromic Substring │ ├── Solution.cpp │ ├── Solution.java │ ├── Solution.md │ ├── Solution2.java │ ├── Solution2.md │ └── chiku011solution.cpp ├── 515. Find Largest Value in Each Tree Row │ ├── sol.cpp │ └── sol.md ├── 55. Jump Game │ ├── README.md │ ├── Solution.cpp │ └── Solution.java ├── 560. Subarray Sum Equals K │ ├── readme.md │ └── solution.js ├── 6. Zigzag Conversion │ ├── README.md │ ├── solution.cpp │ └── solution.java ├── 61. Rotate List │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 62. Unique Paths │ ├── sol.java │ └── sol.md ├── 63. Unique Paths II │ ├── README.md │ └── Solution.java ├── 7. Reverse Integer │ ├── Constant space approach │ │ ├── Solution.java │ │ └── Solution.md │ ├── sol.cpp │ ├── sol.java │ └── sol.md ├── 725. Split List in Parts │ ├── sol.java │ └── sol.md ├── 779. K-th Symbol in Grammar │ ├── Kth_Symbol.cpp │ ├── Kth_Symbol.java │ └── README.md ├── 8. String to Integer (atoi) │ └── Solution.js ├── 80. Remove-duplicates-from-sorted-array │ └── remove-duplicates.py ├── 814. Binary Tree Pruning │ └── README.md ├── 823. Binary Trees With Factors │ ├── README.md │ └── Solution.java ├── 853. Car Fleet │ ├── README.md │ └── Solution.js ├── 967. Numbers With Same Consecutive Differences │ ├── README.md │ ├── Solution.cpp │ ├── Solution.java │ └── Solution.py ├── 974. Subarray Sums Divisible by K │ ├── README.md │ ├── Solution.cpp │ ├── Solution.java │ └── Solution.py ├── 98. Valid BST │ ├── README.md │ ├── solution.cpp │ └── solution.java └── README.md ├── README.md └── _config.yml /.github/ISSUE_TEMPLATE/add-a-problem.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/.github/ISSUE_TEMPLATE/add-a-problem.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | directories.ipynb 2 | .vscode/ 3 | lib/ -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Easy/1. Two Sum/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1. Two Sum/README.md -------------------------------------------------------------------------------- /Easy/1. Two Sum/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1. Two Sum/Solution.cpp -------------------------------------------------------------------------------- /Easy/1. Two Sum/Solution.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1. Two Sum/Solution.cs -------------------------------------------------------------------------------- /Easy/1. Two Sum/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1. Two Sum/Solution.java -------------------------------------------------------------------------------- /Easy/1. Two Sum/Solution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1. Two Sum/Solution.js -------------------------------------------------------------------------------- /Easy/1. Two Sum/Solution.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1. Two Sum/Solution.php -------------------------------------------------------------------------------- /Easy/1. Two Sum/Solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1. Two Sum/Solution.py -------------------------------------------------------------------------------- /Easy/1. Two Sum/Solution.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1. Two Sum/Solution.rb -------------------------------------------------------------------------------- /Easy/1. Two Sum/Solution.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1. Two Sum/Solution.ts -------------------------------------------------------------------------------- /Easy/101. Symmetric Tree/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/101. Symmetric Tree/Solution.java -------------------------------------------------------------------------------- /Easy/101. Symmetric Tree/Solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/101. Symmetric Tree/Solution.py -------------------------------------------------------------------------------- /Easy/101. Symmetric Tree/Solution.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/101. Symmetric Tree/Solution.rb -------------------------------------------------------------------------------- /Easy/104. Maximum Depth of Binary Tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/104. Maximum Depth of Binary Tree/README.md -------------------------------------------------------------------------------- /Easy/104. Maximum Depth of Binary Tree/Recursion - 1/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/104. Maximum Depth of Binary Tree/Recursion - 1/Solution.cpp -------------------------------------------------------------------------------- /Easy/104. Maximum Depth of Binary Tree/Recursion - 1/Solution.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/104. Maximum Depth of Binary Tree/Recursion - 1/Solution.ex -------------------------------------------------------------------------------- /Easy/104. Maximum Depth of Binary Tree/Recursion - 1/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/104. Maximum Depth of Binary Tree/Recursion - 1/Solution.java -------------------------------------------------------------------------------- /Easy/104. Maximum Depth of Binary Tree/Recursion - 1/Solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/104. Maximum Depth of Binary Tree/Recursion - 1/Solution.py -------------------------------------------------------------------------------- /Easy/108. Convert Sorted Array to Binary Search Tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/108. Convert Sorted Array to Binary Search Tree/README.md -------------------------------------------------------------------------------- /Easy/108. Convert Sorted Array to Binary Search Tree/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/108. Convert Sorted Array to Binary Search Tree/Solution.cpp -------------------------------------------------------------------------------- /Easy/108. Convert Sorted Array to Binary Search Tree/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/108. Convert Sorted Array to Binary Search Tree/Solution.java -------------------------------------------------------------------------------- /Easy/108. Convert Sorted Array to Binary Search Tree/Solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/108. Convert Sorted Array to Binary Search Tree/Solution.py -------------------------------------------------------------------------------- /Easy/111. Minimum Depth of Binary Tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/111. Minimum Depth of Binary Tree/README.md -------------------------------------------------------------------------------- /Easy/111. Minimum Depth of Binary Tree/sol.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/111. Minimum Depth of Binary Tree/sol.py -------------------------------------------------------------------------------- /Easy/119. Pascal's Triangle II/READme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/119. Pascal's Triangle II/READme.md -------------------------------------------------------------------------------- /Easy/119. Pascal's Triangle II/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/119. Pascal's Triangle II/solution.py -------------------------------------------------------------------------------- /Easy/121. Best Time to buy and sell stock/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/121. Best Time to buy and sell stock/README.md -------------------------------------------------------------------------------- /Easy/121. Best Time to buy and sell stock/Solutioin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/121. Best Time to buy and sell stock/Solutioin.js -------------------------------------------------------------------------------- /Easy/121. Best Time to buy and sell stock/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/121. Best Time to buy and sell stock/Solution.java -------------------------------------------------------------------------------- /Easy/121. Best Time to buy and sell stock/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/121. Best Time to buy and sell stock/sol.md -------------------------------------------------------------------------------- /Easy/122. Best Time to Buy and Sell Stock II/122. Best Time to Buy and Sell Stock II.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/122. Best Time to Buy and Sell Stock II/122. Best Time to Buy and Sell Stock II.cpp -------------------------------------------------------------------------------- /Easy/13. Roman to Integer/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/13. Roman to Integer/README.md -------------------------------------------------------------------------------- /Easy/13. Roman to Integer/Roman to Integer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/13. Roman to Integer/Roman to Integer.cpp -------------------------------------------------------------------------------- /Easy/13. Roman to Integer/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/13. Roman to Integer/Solution.java -------------------------------------------------------------------------------- /Easy/13. Roman to Integer/Solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/13. Roman to Integer/Solution.py -------------------------------------------------------------------------------- /Easy/1337. K Weakest Rows in a Matrix/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1337. K Weakest Rows in a Matrix/sol.cpp -------------------------------------------------------------------------------- /Easy/1337. K Weakest Rows in a Matrix/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1337. K Weakest Rows in a Matrix/sol.java -------------------------------------------------------------------------------- /Easy/1337. K Weakest Rows in a Matrix/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1337. K Weakest Rows in a Matrix/sol.md -------------------------------------------------------------------------------- /Easy/1342. Number of Steps to Reduce a Number to Zero/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1342. Number of Steps to Reduce a Number to Zero/README.md -------------------------------------------------------------------------------- /Easy/1342. Number of Steps to Reduce a Number to Zero/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1342. Number of Steps to Reduce a Number to Zero/Solution.java -------------------------------------------------------------------------------- /Easy/1356. Sort Integers by The Number of 1 Bits/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1356. Sort Integers by The Number of 1 Bits/sol.md -------------------------------------------------------------------------------- /Easy/1356. Sort Integers by The Number of 1 Bits/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1356. Sort Integers by The Number of 1 Bits/solution.py -------------------------------------------------------------------------------- /Easy/14. Longest Common Prefix/solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/14. Longest Common Prefix/solution.cpp -------------------------------------------------------------------------------- /Easy/14. Longest Common Prefix/solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/14. Longest Common Prefix/solution.java -------------------------------------------------------------------------------- /Easy/141. Linked List Cycle/explanantion.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/141. Linked List Cycle/explanantion.md -------------------------------------------------------------------------------- /Easy/141. Linked List Cycle/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/141. Linked List Cycle/sol.cpp -------------------------------------------------------------------------------- /Easy/141. Linked List Cycle/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/141. Linked List Cycle/sol.java -------------------------------------------------------------------------------- /Easy/141.Linked List Cycle/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/141.Linked List Cycle/README.md -------------------------------------------------------------------------------- /Easy/141.Linked List Cycle/solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/141.Linked List Cycle/solution.cpp -------------------------------------------------------------------------------- /Easy/141.Linked List Cycle/solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/141.Linked List Cycle/solution.java -------------------------------------------------------------------------------- /Easy/144. Binary Tree Preorder Traversal/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/144. Binary Tree Preorder Traversal/Solution.java -------------------------------------------------------------------------------- /Easy/144. Binary Tree Preorder Traversal/Solution.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/144. Binary Tree Preorder Traversal/Solution.kt -------------------------------------------------------------------------------- /Easy/145. Binary Tree Postorder Traversal/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/145. Binary Tree Postorder Traversal/Solution.java -------------------------------------------------------------------------------- /Easy/145. Binary Tree Postorder Traversal/Solution.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/145. Binary Tree Postorder Traversal/Solution.kt -------------------------------------------------------------------------------- /Easy/1470. Shuffle the Array/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1470. Shuffle the Array/README.md -------------------------------------------------------------------------------- /Easy/1470. Shuffle the Array/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1470. Shuffle the Array/Solution.java -------------------------------------------------------------------------------- /Easy/1480. Running Sum of 1d Array/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1480. Running Sum of 1d Array/Solution.java -------------------------------------------------------------------------------- /Easy/1486. XOR Operation in an Array/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1486. XOR Operation in an Array/README.md -------------------------------------------------------------------------------- /Easy/1486. XOR Operation in an Array/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1486. XOR Operation in an Array/Solution.java -------------------------------------------------------------------------------- /Easy/1512. Number of Good Pairs/NoOfGP.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1512. Number of Good Pairs/NoOfGP.java -------------------------------------------------------------------------------- /Easy/1512. Number of Good Pairs/explanation.md.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1512. Number of Good Pairs/explanation.md.txt -------------------------------------------------------------------------------- /Easy/1512. Number of Good Pairs/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1512. Number of Good Pairs/sol.cpp -------------------------------------------------------------------------------- /Easy/1523. Count Odd Numbers in an Interval Range/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1523. Count Odd Numbers in an Interval Range/README.md -------------------------------------------------------------------------------- /Easy/1523. Count Odd Numbers in an Interval Range/Simple Math/SimpleMath.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1523. Count Odd Numbers in an Interval Range/Simple Math/SimpleMath.cpp -------------------------------------------------------------------------------- /Easy/1523. Count Odd Numbers in an Interval Range/Simple Math/SimpleMath.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1523. Count Odd Numbers in an Interval Range/Simple Math/SimpleMath.java -------------------------------------------------------------------------------- /Easy/1523. Count Odd Numbers in an Interval Range/Simple Math/SimpleMath.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1523. Count Odd Numbers in an Interval Range/Simple Math/SimpleMath.py -------------------------------------------------------------------------------- /Easy/1672. Richest Customer Wealth/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1672. Richest Customer Wealth/Solution.cpp -------------------------------------------------------------------------------- /Easy/1672. Richest Customer Wealth/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1672. Richest Customer Wealth/Solution.java -------------------------------------------------------------------------------- /Easy/169. Majority Element/solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/169. Majority Element/solution.cpp -------------------------------------------------------------------------------- /Easy/169. Majority Element/solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/169. Majority Element/solution.java -------------------------------------------------------------------------------- /Easy/169. Majority Element/solution.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/169. Majority Element/solution.md -------------------------------------------------------------------------------- /Easy/169. Majority Element/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/169. Majority Element/solution.py -------------------------------------------------------------------------------- /Easy/1720. Decode XORed Array/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1720. Decode XORed Array/README.md -------------------------------------------------------------------------------- /Easy/1720. Decode XORed Array/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1720. Decode XORed Array/Solution.java -------------------------------------------------------------------------------- /Easy/1920. Build Array from Permutation/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1920. Build Array from Permutation/Solution.java -------------------------------------------------------------------------------- /Easy/1929. Concatenation of Array/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1929. Concatenation of Array/Solution.cpp -------------------------------------------------------------------------------- /Easy/1929. Concatenation of Array/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/1929. Concatenation of Array/Solution.java -------------------------------------------------------------------------------- /Easy/20. Valid Parentheses/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/20. Valid Parentheses/Solution.java -------------------------------------------------------------------------------- /Easy/2011. Final Value of Variable After Performing Operations/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/2011. Final Value of Variable After Performing Operations/Solution.java -------------------------------------------------------------------------------- /Easy/206. Reverse Linked List/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/206. Reverse Linked List/Solution.java -------------------------------------------------------------------------------- /Easy/206. Reverse Linked List/Solution.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/206. Reverse Linked List/Solution.kt -------------------------------------------------------------------------------- /Easy/217. Contains Duplicate/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/217. Contains Duplicate/Solution.java -------------------------------------------------------------------------------- /Easy/217. Contains Duplicate/Solution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/217. Contains Duplicate/Solution.js -------------------------------------------------------------------------------- /Easy/217. Contains Duplicate/Solution.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/217. Contains Duplicate/Solution.kt -------------------------------------------------------------------------------- /Easy/222. Count complete Tree Node/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/222. Count complete Tree Node/Solution.java -------------------------------------------------------------------------------- /Easy/222. Count complete Tree Node/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/222. Count complete Tree Node/sol.md -------------------------------------------------------------------------------- /Easy/226. Invert Binary Tree/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/226. Invert Binary Tree/Solution.java -------------------------------------------------------------------------------- /Easy/226. Invert Binary Tree/Solution.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/226. Invert Binary Tree/Solution.kt -------------------------------------------------------------------------------- /Easy/232. Implement Queue using Stacks/MyQueue.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/232. Implement Queue using Stacks/MyQueue.java -------------------------------------------------------------------------------- /Easy/235. Lowest Common Ancestor of a Binary Search Tree/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/235. Lowest Common Ancestor of a Binary Search Tree/Solution.java -------------------------------------------------------------------------------- /Easy/2373. Largest Local Values in a Matrix/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/2373. Largest Local Values in a Matrix/README.md -------------------------------------------------------------------------------- /Easy/2373. Largest Local Values in a Matrix/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/2373. Largest Local Values in a Matrix/Solution.java -------------------------------------------------------------------------------- /Easy/242. Valid Anagram/Solution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/242. Valid Anagram/Solution.js -------------------------------------------------------------------------------- /Easy/2423. Remove Letter To Equalize Frequency/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/2423. Remove Letter To Equalize Frequency/Readme.md -------------------------------------------------------------------------------- /Easy/2423. Remove Letter To Equalize Frequency/Solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/2423. Remove Letter To Equalize Frequency/Solution.py -------------------------------------------------------------------------------- /Easy/2591. Distribute Money to Maximum Children/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/2591. Distribute Money to Maximum Children/Readme.md -------------------------------------------------------------------------------- /Easy/2591. Distribute Money to Maximum Children/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/2591. Distribute Money to Maximum Children/Solution.cpp -------------------------------------------------------------------------------- /Easy/26. Remove Duplicates from Sorted Array/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/26. Remove Duplicates from Sorted Array/README.md -------------------------------------------------------------------------------- /Easy/26. Remove Duplicates from Sorted Array/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/26. Remove Duplicates from Sorted Array/Solution.cpp -------------------------------------------------------------------------------- /Easy/26. Remove Duplicates from Sorted Array/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/26. Remove Duplicates from Sorted Array/Solution.java -------------------------------------------------------------------------------- /Easy/26. Remove Duplicates from Sorted Array/Solution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/26. Remove Duplicates from Sorted Array/Solution.js -------------------------------------------------------------------------------- /Easy/2703. Return Length of Arguments Passed/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/2703. Return Length of Arguments Passed/README.md -------------------------------------------------------------------------------- /Easy/2703. Return Length of Arguments Passed/solution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/2703. Return Length of Arguments Passed/solution.js -------------------------------------------------------------------------------- /Easy/326. Power of Three/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/326. Power of Three/README.md -------------------------------------------------------------------------------- /Easy/326. Power of Three/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/326. Power of Three/Solution.java -------------------------------------------------------------------------------- /Easy/342. Power of Four/Approach 1/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/342. Power of Four/Approach 1/Readme.md -------------------------------------------------------------------------------- /Easy/342. Power of Four/Approach 1/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/342. Power of Four/Approach 1/Solution.cpp -------------------------------------------------------------------------------- /Easy/342. Power of Four/Approach 1/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/342. Power of Four/Approach 1/Solution.java -------------------------------------------------------------------------------- /Easy/342. Power of Four/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/342. Power of Four/Solution.cpp -------------------------------------------------------------------------------- /Easy/342. Power of Four/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/342. Power of Four/Solution.java -------------------------------------------------------------------------------- /Easy/344. Reverse String/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/344. Reverse String/Solution.cpp -------------------------------------------------------------------------------- /Easy/344. Reverse String/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/344. Reverse String/Solution.java -------------------------------------------------------------------------------- /Easy/344. Reverse String/Solution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/344. Reverse String/Solution.js -------------------------------------------------------------------------------- /Easy/389. Find the Difference/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/389. Find the Difference/sol.cpp -------------------------------------------------------------------------------- /Easy/389. Find the Difference/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/389. Find the Difference/sol.java -------------------------------------------------------------------------------- /Easy/389. Find the Difference/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/389. Find the Difference/sol.md -------------------------------------------------------------------------------- /Easy/392. Is Subsequence/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/392. Is Subsequence/sol.cpp -------------------------------------------------------------------------------- /Easy/392. Is Subsequence/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/392. Is Subsequence/sol.java -------------------------------------------------------------------------------- /Easy/392. Is Subsequence/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/392. Is Subsequence/sol.md -------------------------------------------------------------------------------- /Easy/557. Reverse Words in a String III/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/557. Reverse Words in a String III/README.md -------------------------------------------------------------------------------- /Easy/557. Reverse Words in a String III/solution.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/557. Reverse Words in a String III/solution.dart -------------------------------------------------------------------------------- /Easy/557. Reverse Words in a String III/solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/557. Reverse Words in a String III/solution.java -------------------------------------------------------------------------------- /Easy/557. Reverse Words in a String III/solution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/557. Reverse Words in a String III/solution.js -------------------------------------------------------------------------------- /Easy/557. Reverse Words in a String III/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/557. Reverse Words in a String III/solution.py -------------------------------------------------------------------------------- /Easy/58. Length of Last Word/Length_of_last_word.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/58. Length of Last Word/Length_of_last_word.js -------------------------------------------------------------------------------- /Easy/58. Length of Last Word/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/58. Length of Last Word/sol.cpp -------------------------------------------------------------------------------- /Easy/58. Length of Last Word/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/58. Length of Last Word/sol.java -------------------------------------------------------------------------------- /Easy/58. Length of Last Word/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/58. Length of Last Word/sol.md -------------------------------------------------------------------------------- /Easy/606. Construct String from Binary Tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/606. Construct String from Binary Tree/README.md -------------------------------------------------------------------------------- /Easy/637. Average of Levels in Binary Tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/637. Average of Levels in Binary Tree/README.md -------------------------------------------------------------------------------- /Easy/637. Average of Levels in Binary Tree/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/637. Average of Levels in Binary Tree/Solution.cpp -------------------------------------------------------------------------------- /Easy/637. Average of Levels in Binary Tree/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/637. Average of Levels in Binary Tree/Solution.java -------------------------------------------------------------------------------- /Easy/637. Average of Levels in Binary Tree/Solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/637. Average of Levels in Binary Tree/Solution.py -------------------------------------------------------------------------------- /Easy/653. Two Sum IV - Input is a BST/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/653. Two Sum IV - Input is a BST/Solution.java -------------------------------------------------------------------------------- /Easy/700. Search in a Binary Search Tree/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/700. Search in a Binary Search Tree/Solution.java -------------------------------------------------------------------------------- /Easy/706. Design HashMap/solution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/706. Design HashMap/solution.js -------------------------------------------------------------------------------- /Easy/73. Set Matrix Zeroes/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/73. Set Matrix Zeroes/Solution.java -------------------------------------------------------------------------------- /Easy/746.Min Cost Climbing Stairs/Min Cost Climbing Stairs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/746.Min Cost Climbing Stairs/Min Cost Climbing Stairs.cpp -------------------------------------------------------------------------------- /Easy/746.Min Cost Climbing Stairs/READme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/746.Min Cost Climbing Stairs/READme.md -------------------------------------------------------------------------------- /Easy/746.Min Cost Climbing Stairs/solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/746.Min Cost Climbing Stairs/solution.java -------------------------------------------------------------------------------- /Easy/746.Min Cost Climbing Stairs/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/746.Min Cost Climbing Stairs/solution.py -------------------------------------------------------------------------------- /Easy/844. Backspace String Compare/Solution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/844. Backspace String Compare/Solution.js -------------------------------------------------------------------------------- /Easy/88. Merge Sorted Array/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/88. Merge Sorted Array/README.md -------------------------------------------------------------------------------- /Easy/88. Merge Sorted Array/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/88. Merge Sorted Array/Solution.cpp -------------------------------------------------------------------------------- /Easy/896. Monotonic Array/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/896. Monotonic Array/sol.cpp -------------------------------------------------------------------------------- /Easy/896. Monotonic Array/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/896. Monotonic Array/sol.java -------------------------------------------------------------------------------- /Easy/896. Monotonic Array/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/896. Monotonic Array/sol.md -------------------------------------------------------------------------------- /Easy/9. Palindrome Number/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/9. Palindrome Number/README.md -------------------------------------------------------------------------------- /Easy/9. Palindrome Number/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/9. Palindrome Number/Solution.cpp -------------------------------------------------------------------------------- /Easy/9. Palindrome Number/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/9. Palindrome Number/Solution.java -------------------------------------------------------------------------------- /Easy/9. Palindrome Number/Solution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/9. Palindrome Number/Solution.js -------------------------------------------------------------------------------- /Easy/9. Palindrome Number/Solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/9. Palindrome Number/Solution.py -------------------------------------------------------------------------------- /Easy/9. Palindrome Number/Solution.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/9. Palindrome Number/Solution.rb -------------------------------------------------------------------------------- /Easy/905. Sort Array by Parity/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/905. Sort Array by Parity/sol.cpp -------------------------------------------------------------------------------- /Easy/905. Sort Array by Parity/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/905. Sort Array by Parity/sol.java -------------------------------------------------------------------------------- /Easy/905. Sort Array by Parity/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/905. Sort Array by Parity/sol.md -------------------------------------------------------------------------------- /Easy/94. Binary Tree Inorder Traversal/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/94. Binary Tree Inorder Traversal/README.md -------------------------------------------------------------------------------- /Easy/94. Binary Tree Inorder Traversal/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/94. Binary Tree Inorder Traversal/Solution.java -------------------------------------------------------------------------------- /Easy/94. Binary Tree Inorder Traversal/Solution.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/94. Binary Tree Inorder Traversal/Solution.rb -------------------------------------------------------------------------------- /Easy/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Easy/README.md -------------------------------------------------------------------------------- /Hard/10. Regular Expression Matching/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/10. Regular Expression Matching/README.md -------------------------------------------------------------------------------- /Hard/10. Regular Expression Matching/sol.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/10. Regular Expression Matching/sol.py -------------------------------------------------------------------------------- /Hard/1095. Find in Mountain Array/READEME.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1095. Find in Mountain Array/READEME.md -------------------------------------------------------------------------------- /Hard/1095. Find in Mountain Array/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1095. Find in Mountain Array/solution.py -------------------------------------------------------------------------------- /Hard/115. Distinct Subsequences/Approach 1/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/115. Distinct Subsequences/Approach 1/sol.md -------------------------------------------------------------------------------- /Hard/115. Distinct Subsequences/Approach 1/solution.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/115. Distinct Subsequences/Approach 1/solution.go -------------------------------------------------------------------------------- /Hard/115. Distinct Subsequences/Approach 1/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/115. Distinct Subsequences/Approach 1/solution.py -------------------------------------------------------------------------------- /Hard/115. Distinct Subsequences/Approach 1/solution.rust: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/115. Distinct Subsequences/Approach 1/solution.rust -------------------------------------------------------------------------------- /Hard/115. Distinct Subsequences/Approach 1/solution.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/115. Distinct Subsequences/Approach 1/solution.scala -------------------------------------------------------------------------------- /Hard/115. Distinct Subsequences/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/115. Distinct Subsequences/README.md -------------------------------------------------------------------------------- /Hard/115. Distinct Subsequences/solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/115. Distinct Subsequences/solution.cpp -------------------------------------------------------------------------------- /Hard/115. Distinct Subsequences/solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/115. Distinct Subsequences/solution.java -------------------------------------------------------------------------------- /Hard/1203. Sort Items by Groups Respecting Dependencies/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1203. Sort Items by Groups Respecting Dependencies/sol.java -------------------------------------------------------------------------------- /Hard/1203. Sort Items by Groups Respecting Dependencies/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1203. Sort Items by Groups Respecting Dependencies/sol.md -------------------------------------------------------------------------------- /Hard/1220. Count Vowels Permutation/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1220. Count Vowels Permutation/readme.md -------------------------------------------------------------------------------- /Hard/1220. Count Vowels Permutation/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1220. Count Vowels Permutation/solution.py -------------------------------------------------------------------------------- /Hard/1269. Number of Ways to Stay in the Same Place After Some Steps/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1269. Number of Ways to Stay in the Same Place After Some Steps/Readme.md -------------------------------------------------------------------------------- /Hard/1269. Number of Ways to Stay in the Same Place After Some Steps/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1269. Number of Ways to Stay in the Same Place After Some Steps/solution.py -------------------------------------------------------------------------------- /Hard/127. Word Ladder/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/127. Word Ladder/README.md -------------------------------------------------------------------------------- /Hard/127. Word Ladder/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/127. Word Ladder/Solution.java -------------------------------------------------------------------------------- /Hard/1326. Min no of Taps to Open to Water a Garden/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1326. Min no of Taps to Open to Water a Garden/sol.cpp -------------------------------------------------------------------------------- /Hard/1326. Min no of Taps to Open to Water a Garden/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1326. Min no of Taps to Open to Water a Garden/sol.java -------------------------------------------------------------------------------- /Hard/1326. Min no of Taps to Open to Water a Garden/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1326. Min no of Taps to Open to Water a Garden/sol.md -------------------------------------------------------------------------------- /Hard/135. Candy/Approach 1/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/135. Candy/Approach 1/Readme.md -------------------------------------------------------------------------------- /Hard/135. Candy/Approach 1/sloution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/135. Candy/Approach 1/sloution.java -------------------------------------------------------------------------------- /Hard/135. Candy/Approach 1/solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/135. Candy/Approach 1/solution.cpp -------------------------------------------------------------------------------- /Hard/135. Candy/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/135. Candy/sol.cpp -------------------------------------------------------------------------------- /Hard/135. Candy/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/135. Candy/sol.java -------------------------------------------------------------------------------- /Hard/135. Candy/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/135. Candy/sol.md -------------------------------------------------------------------------------- /Hard/1359. Count All Valid Pickup and Delivery Options/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1359. Count All Valid Pickup and Delivery Options/sol.cpp -------------------------------------------------------------------------------- /Hard/1359. Count All Valid Pickup and Delivery Options/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1359. Count All Valid Pickup and Delivery Options/sol.java -------------------------------------------------------------------------------- /Hard/1359. Count All Valid Pickup and Delivery Options/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1359. Count All Valid Pickup and Delivery Options/sol.md -------------------------------------------------------------------------------- /Hard/1420. build array where you can find maximum exactly k comparison/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1420. build array where you can find maximum exactly k comparison/Solution.cpp -------------------------------------------------------------------------------- /Hard/1420. build array where you can find maximum exactly k comparison/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1420. build array where you can find maximum exactly k comparison/Solution.java -------------------------------------------------------------------------------- /Hard/1420. build array where you can find maximum exactly k comparison/Solution.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1420. build array where you can find maximum exactly k comparison/Solution.md -------------------------------------------------------------------------------- /Hard/1425. Constrained Subsequence Sum/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1425. Constrained Subsequence Sum/sol.cpp -------------------------------------------------------------------------------- /Hard/1425. Constrained Subsequence Sum/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1425. Constrained Subsequence Sum/sol.java -------------------------------------------------------------------------------- /Hard/1458. Max Dot Product of Two Subsequences/solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1458. Max Dot Product of Two Subsequences/solution.cpp -------------------------------------------------------------------------------- /Hard/1458. Max Dot Product of Two Subsequences/solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1458. Max Dot Product of Two Subsequences/solution.java -------------------------------------------------------------------------------- /Hard/1458. Max Dot Product of Two Subsequences/solution.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1458. Max Dot Product of Two Subsequences/solution.md -------------------------------------------------------------------------------- /Hard/1458. Max Dot Product of Two Subsequences/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1458. Max Dot Product of Two Subsequences/solution.py -------------------------------------------------------------------------------- /Hard/1489. Find Critical and Pseudo-Critical Edges in Min Spanning Tree/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1489. Find Critical and Pseudo-Critical Edges in Min Spanning Tree/sol.cpp -------------------------------------------------------------------------------- /Hard/1489. Find Critical and Pseudo-Critical Edges in Min Spanning Tree/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1489. Find Critical and Pseudo-Critical Edges in Min Spanning Tree/sol.java -------------------------------------------------------------------------------- /Hard/1489. Find Critical and Pseudo-Critical Edges in Min Spanning Tree/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1489. Find Critical and Pseudo-Critical Edges in Min Spanning Tree/sol.md -------------------------------------------------------------------------------- /Hard/1793. Maximum Score of a Good Subarray/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1793. Maximum Score of a Good Subarray/README.md -------------------------------------------------------------------------------- /Hard/1793. Maximum Score of a Good Subarray/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/1793. Maximum Score of a Good Subarray/Solution.java -------------------------------------------------------------------------------- /Hard/2009. Minimum Number of Operations to Make Array Continuous/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2009. Minimum Number of Operations to Make Array Continuous/README.md -------------------------------------------------------------------------------- /Hard/2009. Minimum Number of Operations to Make Array Continuous/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2009. Minimum Number of Operations to Make Array Continuous/solution.py -------------------------------------------------------------------------------- /Hard/2050. Parallel Courses III/Reademe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2050. Parallel Courses III/Reademe.md -------------------------------------------------------------------------------- /Hard/2050. Parallel Courses III/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2050. Parallel Courses III/solution.py -------------------------------------------------------------------------------- /Hard/2141. Maximum Running Time/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2141. Maximum Running Time/sol.cpp -------------------------------------------------------------------------------- /Hard/2141. Maximum Running Time/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2141. Maximum Running Time/sol.java -------------------------------------------------------------------------------- /Hard/2141. Maximum Running Time/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2141. Maximum Running Time/sol.md -------------------------------------------------------------------------------- /Hard/2227. Encrypt and Decrypt String/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2227. Encrypt and Decrypt String/README.md -------------------------------------------------------------------------------- /Hard/2227. Encrypt and Decrypt String/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2227. Encrypt and Decrypt String/solution.py -------------------------------------------------------------------------------- /Hard/2251. Number Of Flowers In Full Bloom/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2251. Number Of Flowers In Full Bloom/Solution.cpp -------------------------------------------------------------------------------- /Hard/2251. Number Of Flowers In Full Bloom/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2251. Number Of Flowers In Full Bloom/Solution.java -------------------------------------------------------------------------------- /Hard/2251. Number Of Flowers In Full Bloom/Solution.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2251. Number Of Flowers In Full Bloom/Solution.md -------------------------------------------------------------------------------- /Hard/233. Number of Digit One/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/233. Number of Digit One/README.md -------------------------------------------------------------------------------- /Hard/233. Number of Digit One/Sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/233. Number of Digit One/Sol.java -------------------------------------------------------------------------------- /Hard/2366. Min Replacements to Sort an Array/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2366. Min Replacements to Sort an Array/sol.cpp -------------------------------------------------------------------------------- /Hard/2366. Min Replacements to Sort an Array/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2366. Min Replacements to Sort an Array/sol.java -------------------------------------------------------------------------------- /Hard/2366. Min Replacements to Sort an Array/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2366. Min Replacements to Sort an Array/sol.md -------------------------------------------------------------------------------- /Hard/239. Sliding Window Max/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/239. Sliding Window Max/sol.cpp -------------------------------------------------------------------------------- /Hard/239. Sliding Window Max/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/239. Sliding Window Max/sol.java -------------------------------------------------------------------------------- /Hard/239. Sliding Window Max/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/239. Sliding Window Max/sol.md -------------------------------------------------------------------------------- /Hard/25. Reverse Nodes in k-Group/ListNode.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/25. Reverse Nodes in k-Group/ListNode.java -------------------------------------------------------------------------------- /Hard/273. Integer to English Words/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/273. Integer to English Words/README.md -------------------------------------------------------------------------------- /Hard/273. Integer to English Words/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/273. Integer to English Words/Solution.java -------------------------------------------------------------------------------- /Hard/2742. Painting the Walls/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2742. Painting the Walls/Readme.md -------------------------------------------------------------------------------- /Hard/2742. Painting the Walls/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/2742. Painting the Walls/solution.py -------------------------------------------------------------------------------- /Hard/332. Reconstruct Itinerary/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/332. Reconstruct Itinerary/sol.cpp -------------------------------------------------------------------------------- /Hard/332. Reconstruct Itinerary/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/332. Reconstruct Itinerary/sol.java -------------------------------------------------------------------------------- /Hard/332. Reconstruct Itinerary/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/332. Reconstruct Itinerary/sol.md -------------------------------------------------------------------------------- /Hard/34. Find First and Last Position of Element in Sorted Array/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/34. Find First and Last Position of Element in Sorted Array/sol.cpp -------------------------------------------------------------------------------- /Hard/34. Find First and Last Position of Element in Sorted Array/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/34. Find First and Last Position of Element in Sorted Array/sol.java -------------------------------------------------------------------------------- /Hard/34. Find First and Last Position of Element in Sorted Array/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/34. Find First and Last Position of Element in Sorted Array/sol.md -------------------------------------------------------------------------------- /Hard/34. Find First and Last Position of Element in Sorted Array/sol.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/34. Find First and Last Position of Element in Sorted Array/sol.py -------------------------------------------------------------------------------- /Hard/37.Sudoku Solver/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/37.Sudoku Solver/README.md -------------------------------------------------------------------------------- /Hard/37.Sudoku Solver/Sol3.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/37.Sudoku Solver/Sol3.java -------------------------------------------------------------------------------- /Hard/4. Median of Two Sorted Arrays/New approach[Arraylist]/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/4. Median of Two Sorted Arrays/New approach[Arraylist]/Solution.java -------------------------------------------------------------------------------- /Hard/4. Median of Two Sorted Arrays/New approach[Arraylist]/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/4. Median of Two Sorted Arrays/New approach[Arraylist]/sol.md -------------------------------------------------------------------------------- /Hard/4. Median of Two Sorted Arrays/New approach[add two array]/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/4. Median of Two Sorted Arrays/New approach[add two array]/Solution.java -------------------------------------------------------------------------------- /Hard/4. Median of Two Sorted Arrays/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/4. Median of Two Sorted Arrays/sol.cpp -------------------------------------------------------------------------------- /Hard/4. Median of Two Sorted Arrays/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/4. Median of Two Sorted Arrays/sol.java -------------------------------------------------------------------------------- /Hard/4. Median of Two Sorted Arrays/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/4. Median of Two Sorted Arrays/sol.md -------------------------------------------------------------------------------- /Hard/41. First Missing Positive/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/41. First Missing Positive/sol.cpp -------------------------------------------------------------------------------- /Hard/41. First Missing Positive/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/41. First Missing Positive/sol.java -------------------------------------------------------------------------------- /Hard/41. First Missing Positive/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/41. First Missing Positive/sol.md -------------------------------------------------------------------------------- /Hard/42. Trapping Rain Water/Approach 1/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/42. Trapping Rain Water/Approach 1/sol.md -------------------------------------------------------------------------------- /Hard/42. Trapping Rain Water/Approach 1/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/42. Trapping Rain Water/Approach 1/solution.py -------------------------------------------------------------------------------- /Hard/42. Trapping Rain Water/sol.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/42. Trapping Rain Water/sol.js -------------------------------------------------------------------------------- /Hard/42. Trapping Rain Water/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/42. Trapping Rain Water/sol.md -------------------------------------------------------------------------------- /Hard/664. Strange Printer/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/664. Strange Printer/sol.cpp -------------------------------------------------------------------------------- /Hard/664. Strange Printer/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/664. Strange Printer/sol.java -------------------------------------------------------------------------------- /Hard/664. Strange Printer/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/664. Strange Printer/sol.md -------------------------------------------------------------------------------- /Hard/68. Test Justification/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/68. Test Justification/sol.cpp -------------------------------------------------------------------------------- /Hard/68. Test Justification/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/68. Test Justification/sol.java -------------------------------------------------------------------------------- /Hard/68. Test Justification/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/68. Test Justification/sol.md -------------------------------------------------------------------------------- /Hard/72. Edit Distance/Levenshtein/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/72. Edit Distance/Levenshtein/README.md -------------------------------------------------------------------------------- /Hard/72. Edit Distance/Levenshtein/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/72. Edit Distance/Levenshtein/Solution.java -------------------------------------------------------------------------------- /Hard/72. Edit Distance/Levenshtein/images/finding-distance-table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/72. Edit Distance/Levenshtein/images/finding-distance-table.png -------------------------------------------------------------------------------- /Hard/72. Edit Distance/Levenshtein/images/finding-distance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/72. Edit Distance/Levenshtein/images/finding-distance.png -------------------------------------------------------------------------------- /Hard/72. Edit Distance/Levenshtein/images/intialization-table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/72. Edit Distance/Levenshtein/images/intialization-table.png -------------------------------------------------------------------------------- /Hard/72. Edit Distance/Levenshtein/images/intialization.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/72. Edit Distance/Levenshtein/images/intialization.png -------------------------------------------------------------------------------- /Hard/72. Edit Distance/Levenshtein/images/levenshtein-distance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/72. Edit Distance/Levenshtein/images/levenshtein-distance.png -------------------------------------------------------------------------------- /Hard/72. Edit Distance/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/72. Edit Distance/README.md -------------------------------------------------------------------------------- /Hard/76. Minimum Window Substring/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/76. Minimum Window Substring/README.md -------------------------------------------------------------------------------- /Hard/76. Minimum Window Substring/Sol1.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/76. Minimum Window Substring/Sol1.java -------------------------------------------------------------------------------- /Hard/847. Shortest Path Visiting all Nodes/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/847. Shortest Path Visiting all Nodes/sol.cpp -------------------------------------------------------------------------------- /Hard/847. Shortest Path Visiting all Nodes/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/847. Shortest Path Visiting all Nodes/sol.java -------------------------------------------------------------------------------- /Hard/847. Shortest Path Visiting all Nodes/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/847. Shortest Path Visiting all Nodes/sol.md -------------------------------------------------------------------------------- /Hard/920. Number of Music Playlists/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/920. Number of Music Playlists/sol.cpp -------------------------------------------------------------------------------- /Hard/920. Number of Music Playlists/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/920. Number of Music Playlists/sol.java -------------------------------------------------------------------------------- /Hard/920. Number of Music Playlists/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/920. Number of Music Playlists/sol.md -------------------------------------------------------------------------------- /Hard/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Hard/README.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/LICENSE -------------------------------------------------------------------------------- /Medium/1048. Longest String Chain/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1048. Longest String Chain/sol.cpp -------------------------------------------------------------------------------- /Medium/1048. Longest String Chain/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1048. Longest String Chain/sol.java -------------------------------------------------------------------------------- /Medium/1048. Longest String Chain/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1048. Longest String Chain/sol.md -------------------------------------------------------------------------------- /Medium/1081. Smallest SubSequence of Distinct Characters/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1081. Smallest SubSequence of Distinct Characters/sol.java -------------------------------------------------------------------------------- /Medium/1081. Smallest SubSequence of Distinct Characters/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1081. Smallest SubSequence of Distinct Characters/sol.md -------------------------------------------------------------------------------- /Medium/11. Container With Most Water/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/11. Container With Most Water/README.md -------------------------------------------------------------------------------- /Medium/11. Container With Most Water/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/11. Container With Most Water/Solution.cpp -------------------------------------------------------------------------------- /Medium/11. Container With Most Water/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/11. Container With Most Water/Solution.java -------------------------------------------------------------------------------- /Medium/12. Integer To Roman/Solution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/12. Integer To Roman/Solution.js -------------------------------------------------------------------------------- /Medium/122. Best Time to Buy and Sell Stock II/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/122. Best Time to Buy and Sell Stock II/sol.md -------------------------------------------------------------------------------- /Medium/122. Best Time to Buy and Sell Stock II/solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/122. Best Time to Buy and Sell Stock II/solution.cpp -------------------------------------------------------------------------------- /Medium/134. Gas Station/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/134. Gas Station/Readme.md -------------------------------------------------------------------------------- /Medium/134. Gas Station/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/134. Gas Station/Solution.cpp -------------------------------------------------------------------------------- /Medium/134. Gas Station/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/134. Gas Station/Solution.java -------------------------------------------------------------------------------- /Medium/134.Gas Station/solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/134.Gas Station/solution.cpp -------------------------------------------------------------------------------- /Medium/134.Gas Station/solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/134.Gas Station/solution.java -------------------------------------------------------------------------------- /Medium/134.Gas Station/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/134.Gas Station/solution.py -------------------------------------------------------------------------------- /Medium/1361. Validate Binary Tree Nodes/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1361. Validate Binary Tree Nodes/Readme.md -------------------------------------------------------------------------------- /Medium/1361. Validate Binary Tree Nodes/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1361. Validate Binary Tree Nodes/solution.py -------------------------------------------------------------------------------- /Medium/142. LinkedList Cycle II/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/142. LinkedList Cycle II/sol.cpp -------------------------------------------------------------------------------- /Medium/142. LinkedList Cycle II/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/142. LinkedList Cycle II/sol.java -------------------------------------------------------------------------------- /Medium/142. LinkedList Cycle II/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/142. LinkedList Cycle II/sol.md -------------------------------------------------------------------------------- /Medium/1448. Count Good Nodes in Binary Tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1448. Count Good Nodes in Binary Tree/README.md -------------------------------------------------------------------------------- /Medium/1448. Count Good Nodes in Binary Tree/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1448. Count Good Nodes in Binary Tree/Solution.java -------------------------------------------------------------------------------- /Medium/146. LRU Cache/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/146. LRU Cache/README.md -------------------------------------------------------------------------------- /Medium/146. LRU Cache/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/146. LRU Cache/Solution.java -------------------------------------------------------------------------------- /Medium/15. 3sum/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/15. 3sum/README.md -------------------------------------------------------------------------------- /Medium/15. 3sum/solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/15. 3sum/solution.cpp -------------------------------------------------------------------------------- /Medium/15. 3sum/solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/15. 3sum/solution.java -------------------------------------------------------------------------------- /Medium/15.3Sum/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/15.3Sum/Solution.java -------------------------------------------------------------------------------- /Medium/15.3Sum/solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/15.3Sum/solution.cpp -------------------------------------------------------------------------------- /Medium/15.3Sum/solution.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/15.3Sum/solution.md -------------------------------------------------------------------------------- /Medium/1503. Last Moment Before All Ants Fall Out of a Plank/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1503. Last Moment Before All Ants Fall Out of a Plank/README.md -------------------------------------------------------------------------------- /Medium/1503. Last Moment Before All Ants Fall Out of a Plank/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1503. Last Moment Before All Ants Fall Out of a Plank/Solution.java -------------------------------------------------------------------------------- /Medium/151. Reverse Words in a String/Approach 1/Solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/151. Reverse Words in a String/Approach 1/Solution.py -------------------------------------------------------------------------------- /Medium/151. Reverse Words in a String/Approach 1/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/151. Reverse Words in a String/Approach 1/sol.md -------------------------------------------------------------------------------- /Medium/151. Reverse Words in a String/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/151. Reverse Words in a String/Solution.java -------------------------------------------------------------------------------- /Medium/151. Reverse Words in a String/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/151. Reverse Words in a String/sol.md -------------------------------------------------------------------------------- /Medium/153. Find Minimum in Rotated Sorted Array/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/153. Find Minimum in Rotated Sorted Array/sol.cpp -------------------------------------------------------------------------------- /Medium/153. Find Minimum in Rotated Sorted Array/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/153. Find Minimum in Rotated Sorted Array/sol.java -------------------------------------------------------------------------------- /Medium/153. Find Minimum in Rotated Sorted Array/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/153. Find Minimum in Rotated Sorted Array/sol.md -------------------------------------------------------------------------------- /Medium/1584. Min Cost to Connect All Dots/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1584. Min Cost to Connect All Dots/sol.java -------------------------------------------------------------------------------- /Medium/1584. Min Cost to Connect All Dots/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1584. Min Cost to Connect All Dots/sol.md -------------------------------------------------------------------------------- /Medium/1631. Path With Minimum Effort/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1631. Path With Minimum Effort/sol.java -------------------------------------------------------------------------------- /Medium/1631. Path With Minimum Effort/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1631. Path With Minimum Effort/sol.md -------------------------------------------------------------------------------- /Medium/1647. Min Deletions to Make Char Frequencies Unique/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1647. Min Deletions to Make Char Frequencies Unique/sol.java -------------------------------------------------------------------------------- /Medium/1647. Min Deletions to Make Char Frequencies Unique/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1647. Min Deletions to Make Char Frequencies Unique/sol.md -------------------------------------------------------------------------------- /Medium/1658. Minimum Operations to Reduce X to Zero/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1658. Minimum Operations to Reduce X to Zero/sol.cpp -------------------------------------------------------------------------------- /Medium/1658. Minimum Operations to Reduce X to Zero/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1658. Minimum Operations to Reduce X to Zero/sol.java -------------------------------------------------------------------------------- /Medium/1658. Minimum Operations to Reduce X to Zero/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1658. Minimum Operations to Reduce X to Zero/sol.md -------------------------------------------------------------------------------- /Medium/1695. Maximum Erasure Value/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1695. Maximum Erasure Value/README.md -------------------------------------------------------------------------------- /Medium/1695. Maximum Erasure Value/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1695. Maximum Erasure Value/sol.cpp -------------------------------------------------------------------------------- /Medium/172. Factorial Trailing Zeroes/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/172. Factorial Trailing Zeroes/Solution.java -------------------------------------------------------------------------------- /Medium/172. Factorial Trailing Zeroes/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/172. Factorial Trailing Zeroes/sol.md -------------------------------------------------------------------------------- /Medium/179. Largest Number/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/179. Largest Number/sol.cpp -------------------------------------------------------------------------------- /Medium/179. Largest Number/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/179. Largest Number/sol.java -------------------------------------------------------------------------------- /Medium/179. Largest Number/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/179. Largest Number/sol.md -------------------------------------------------------------------------------- /Medium/18. 4Sum/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/18. 4Sum/Solution.java -------------------------------------------------------------------------------- /Medium/189. Rotate Array/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/189. Rotate Array/README.md -------------------------------------------------------------------------------- /Medium/189. Rotate Array/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/189. Rotate Array/Solution.java -------------------------------------------------------------------------------- /Medium/19. Remove nth Node From the End/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/19. Remove nth Node From the End/sol.cpp -------------------------------------------------------------------------------- /Medium/19. Remove nth Node From the End/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/19. Remove nth Node From the End/sol.java -------------------------------------------------------------------------------- /Medium/19. Remove nth Node From the End/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/19. Remove nth Node From the End/sol.md -------------------------------------------------------------------------------- /Medium/1996. The Number of Weak Characters in the Game/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1996. The Number of Weak Characters in the Game/README.md -------------------------------------------------------------------------------- /Medium/1996. The Number of Weak Characters in the Game/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1996. The Number of Weak Characters in the Game/Solution.cpp -------------------------------------------------------------------------------- /Medium/1996. The Number of Weak Characters in the Game/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1996. The Number of Weak Characters in the Game/Solution.java -------------------------------------------------------------------------------- /Medium/1996. The Number of Weak Characters in the Game/Solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/1996. The Number of Weak Characters in the Game/Solution.py -------------------------------------------------------------------------------- /Medium/2. Add Two Numbers/Approach 1/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2. Add Two Numbers/Approach 1/Readme.md -------------------------------------------------------------------------------- /Medium/2. Add Two Numbers/Approach 1/Solution..cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2. Add Two Numbers/Approach 1/Solution..cpp -------------------------------------------------------------------------------- /Medium/2. Add Two Numbers/Approach 1/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2. Add Two Numbers/Approach 1/Solution.java -------------------------------------------------------------------------------- /Medium/2. Add Two Numbers/Solution02.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2. Add Two Numbers/Solution02.java -------------------------------------------------------------------------------- /Medium/2. Add Two Numbers/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2. Add Two Numbers/sol.cpp -------------------------------------------------------------------------------- /Medium/2. Add Two Numbers/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2. Add Two Numbers/sol.java -------------------------------------------------------------------------------- /Medium/2. Add Two Numbers/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2. Add Two Numbers/sol.md -------------------------------------------------------------------------------- /Medium/200. Number of Islands/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/200. Number of Islands/README.md -------------------------------------------------------------------------------- /Medium/200. Number of Islands/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/200. Number of Islands/Solution.cpp -------------------------------------------------------------------------------- /Medium/200. Number of Islands/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/200. Number of Islands/Solution.java -------------------------------------------------------------------------------- /Medium/2038. Remove Colored Pieces if Both Neighbors are the Same Color/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2038. Remove Colored Pieces if Both Neighbors are the Same Color/Readme.md -------------------------------------------------------------------------------- /Medium/2038. Remove Colored Pieces if Both Neighbors are the Same Color/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2038. Remove Colored Pieces if Both Neighbors are the Same Color/Solution.cpp -------------------------------------------------------------------------------- /Medium/2038. Remove Colored Pieces if Both Neighbors are the Same Color/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2038. Remove Colored Pieces if Both Neighbors are the Same Color/Solution.java -------------------------------------------------------------------------------- /Medium/2038. Remove Colored Pieces if/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2038. Remove Colored Pieces if/sol.cpp -------------------------------------------------------------------------------- /Medium/2038. Remove Colored Pieces if/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2038. Remove Colored Pieces if/sol.java -------------------------------------------------------------------------------- /Medium/2038. Remove Colored Pieces if/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2038. Remove Colored Pieces if/sol.md -------------------------------------------------------------------------------- /Medium/204.CountPrimes/Count-Primes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/204.CountPrimes/Count-Primes.java -------------------------------------------------------------------------------- /Medium/204.CountPrimes/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/204.CountPrimes/README.md -------------------------------------------------------------------------------- /Medium/215. Kth Largest Element in an Array/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/215. Kth Largest Element in an Array/Solution.java -------------------------------------------------------------------------------- /Medium/215. Kth Largest Element in an Array/Solution.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/215. Kth Largest Element in an Array/Solution.md -------------------------------------------------------------------------------- /Medium/2186. Minimum Number of Steps to Make Two Strings Anagram II/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2186. Minimum Number of Steps to Make Two Strings Anagram II/Solution.java -------------------------------------------------------------------------------- /Medium/2186. Minimum Number of Steps to Make Two Strings Anagram II/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2186. Minimum Number of Steps to Make Two Strings Anagram II/sol.md -------------------------------------------------------------------------------- /Medium/22. Generate Parentheses/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/22. Generate Parentheses/README.md -------------------------------------------------------------------------------- /Medium/22. Generate Parentheses/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/22. Generate Parentheses/Solution.java -------------------------------------------------------------------------------- /Medium/229. MajorityElement-ll/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/229. MajorityElement-ll/README.md -------------------------------------------------------------------------------- /Medium/229. MajorityElement-ll/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/229. MajorityElement-ll/Solution.cpp -------------------------------------------------------------------------------- /Medium/229. MajorityElement-ll/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/229. MajorityElement-ll/Solution.java -------------------------------------------------------------------------------- /Medium/238. Product of Array Except Self/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/238. Product of Array Except Self/sol.cpp -------------------------------------------------------------------------------- /Medium/238. Product of Array Except Self/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/238. Product of Array Except Self/sol.md -------------------------------------------------------------------------------- /Medium/2433. Find The Original Array of Prefix Xor/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2433. Find The Original Array of Prefix Xor/Readme.md -------------------------------------------------------------------------------- /Medium/2433. Find The Original Array of Prefix Xor/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2433. Find The Original Array of Prefix Xor/Solution.cpp -------------------------------------------------------------------------------- /Medium/2707. Extra Chars in a String/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2707. Extra Chars in a String/sol.java -------------------------------------------------------------------------------- /Medium/2707. Extra Chars in a String/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/2707. Extra Chars in a String/sol.md -------------------------------------------------------------------------------- /Medium/274. H-Index/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/274. H-Index/Readme.md -------------------------------------------------------------------------------- /Medium/274. H-Index/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/274. H-Index/Solution.cpp -------------------------------------------------------------------------------- /Medium/274. H-Index/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/274. H-Index/Solution.java -------------------------------------------------------------------------------- /Medium/287. Find Duplicate Number/New Approach/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/287. Find Duplicate Number/New Approach/Solution.java -------------------------------------------------------------------------------- /Medium/287. Find Duplicate Number/New Approach/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/287. Find Duplicate Number/New Approach/sol.md -------------------------------------------------------------------------------- /Medium/287. Find Duplicate Number/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/287. Find Duplicate Number/sol.cpp -------------------------------------------------------------------------------- /Medium/287. Find Duplicate Number/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/287. Find Duplicate Number/sol.java -------------------------------------------------------------------------------- /Medium/287. Find Duplicate Number/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/287. Find Duplicate Number/sol.md -------------------------------------------------------------------------------- /Medium/29. Divide Two Integers/solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/29. Divide Two Integers/solution.cpp -------------------------------------------------------------------------------- /Medium/29. Divide Two Integers/solution.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/29. Divide Two Integers/solution.md -------------------------------------------------------------------------------- /Medium/3. Longest Substring Without Repeating Characters/solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/3. Longest Substring Without Repeating Characters/solution.java -------------------------------------------------------------------------------- /Medium/316. Remove Duplicate Letters/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/316. Remove Duplicate Letters/sol.java -------------------------------------------------------------------------------- /Medium/316. Remove Duplicate Letters/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/316. Remove Duplicate Letters/sol.md -------------------------------------------------------------------------------- /Medium/328. Odd Even Linked List/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/328. Odd Even Linked List/README.md -------------------------------------------------------------------------------- /Medium/328. Odd Even Linked List/sol.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/328. Odd Even Linked List/sol.py -------------------------------------------------------------------------------- /Medium/33. Search in Rotated Sorted Array/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/33. Search in Rotated Sorted Array/Solution.java -------------------------------------------------------------------------------- /Medium/33. Search in Rotated Sorted Array/Solutions.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/33. Search in Rotated Sorted Array/Solutions.java -------------------------------------------------------------------------------- /Medium/34. First and Last Position of Element in an Array/New Approach/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/34. First and Last Position of Element in an Array/New Approach/Solution.java -------------------------------------------------------------------------------- /Medium/34. First and Last Position of Element in an Array/New Approach/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/34. First and Last Position of Element in an Array/New Approach/sol.md -------------------------------------------------------------------------------- /Medium/34. First and Last Position of Element in an Array/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/34. First and Last Position of Element in an Array/sol.cpp -------------------------------------------------------------------------------- /Medium/34. First and Last Position of Element in an Array/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/34. First and Last Position of Element in an Array/sol.java -------------------------------------------------------------------------------- /Medium/34. First and Last Position of Element in an Array/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/34. First and Last Position of Element in an Array/sol.md -------------------------------------------------------------------------------- /Medium/341. Flatten Nested List Iterator/soln.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/341. Flatten Nested List Iterator/soln.cpp -------------------------------------------------------------------------------- /Medium/341. Flatten Nested List Iterator/soln.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/341. Flatten Nested List Iterator/soln.java -------------------------------------------------------------------------------- /Medium/341. Flatten Nested List Iterator/soln.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/341. Flatten Nested List Iterator/soln.py -------------------------------------------------------------------------------- /Medium/343. Integer Break/solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/343. Integer Break/solution.cpp -------------------------------------------------------------------------------- /Medium/343. Integer Break/solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/343. Integer Break/solution.java -------------------------------------------------------------------------------- /Medium/343. Integer Break/solution.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/343. Integer Break/solution.md -------------------------------------------------------------------------------- /Medium/343. Integer Break/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/343. Integer Break/solution.py -------------------------------------------------------------------------------- /Medium/36. Valid Sudoku/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/36. Valid Sudoku/README.md -------------------------------------------------------------------------------- /Medium/36. Valid Sudoku/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/36. Valid Sudoku/Solution.java -------------------------------------------------------------------------------- /Medium/380. Insert Delete GetRandom O(1)/RandomizedSet.Java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/380. Insert Delete GetRandom O(1)/RandomizedSet.Java -------------------------------------------------------------------------------- /Medium/39. Combination Sum/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/39. Combination Sum/README.md -------------------------------------------------------------------------------- /Medium/39. Combination Sum/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/39. Combination Sum/Solution.java -------------------------------------------------------------------------------- /Medium/40. Combination Sum II/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/40. Combination Sum II/README.md -------------------------------------------------------------------------------- /Medium/40. Combination Sum II/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/40. Combination Sum II/Solution.java -------------------------------------------------------------------------------- /Medium/429. N-ary Tree Level Order Traversal/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/429. N-ary Tree Level Order Traversal/README.md -------------------------------------------------------------------------------- /Medium/43. Multiply Strings/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/43. Multiply Strings/README.md -------------------------------------------------------------------------------- /Medium/43. Multiply Strings/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/43. Multiply Strings/Solution.java -------------------------------------------------------------------------------- /Medium/456. 132 Pattern/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/456. 132 Pattern/README.md -------------------------------------------------------------------------------- /Medium/456. 132 Pattern/sol.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/456. 132 Pattern/sol.py -------------------------------------------------------------------------------- /Medium/47. Permutations II/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/47. Permutations II/README.md -------------------------------------------------------------------------------- /Medium/47. Permutations II/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/47. Permutations II/Solution.java -------------------------------------------------------------------------------- /Medium/48. Rotate Image/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/48. Rotate Image/README.md -------------------------------------------------------------------------------- /Medium/48. Rotate Image/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/48. Rotate Image/Solution.cpp -------------------------------------------------------------------------------- /Medium/48. Rotate Image/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/48. Rotate Image/Solution.java -------------------------------------------------------------------------------- /Medium/5. Longest Palindromic String/longestPalindromic.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/5. Longest Palindromic String/longestPalindromic.cpp -------------------------------------------------------------------------------- /Medium/5. Longest Palindromic Substring/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/5. Longest Palindromic Substring/Solution.cpp -------------------------------------------------------------------------------- /Medium/5. Longest Palindromic Substring/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/5. Longest Palindromic Substring/Solution.java -------------------------------------------------------------------------------- /Medium/5. Longest Palindromic Substring/Solution.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/5. Longest Palindromic Substring/Solution.md -------------------------------------------------------------------------------- /Medium/5. Longest Palindromic Substring/Solution2.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/5. Longest Palindromic Substring/Solution2.java -------------------------------------------------------------------------------- /Medium/5. Longest Palindromic Substring/Solution2.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/5. Longest Palindromic Substring/Solution2.md -------------------------------------------------------------------------------- /Medium/5. Longest Palindromic Substring/chiku011solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/5. Longest Palindromic Substring/chiku011solution.cpp -------------------------------------------------------------------------------- /Medium/515. Find Largest Value in Each Tree Row/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/515. Find Largest Value in Each Tree Row/sol.cpp -------------------------------------------------------------------------------- /Medium/515. Find Largest Value in Each Tree Row/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/515. Find Largest Value in Each Tree Row/sol.md -------------------------------------------------------------------------------- /Medium/55. Jump Game/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/55. Jump Game/README.md -------------------------------------------------------------------------------- /Medium/55. Jump Game/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/55. Jump Game/Solution.cpp -------------------------------------------------------------------------------- /Medium/55. Jump Game/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/55. Jump Game/Solution.java -------------------------------------------------------------------------------- /Medium/560. Subarray Sum Equals K/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/560. Subarray Sum Equals K/readme.md -------------------------------------------------------------------------------- /Medium/560. Subarray Sum Equals K/solution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/560. Subarray Sum Equals K/solution.js -------------------------------------------------------------------------------- /Medium/6. Zigzag Conversion/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/6. Zigzag Conversion/README.md -------------------------------------------------------------------------------- /Medium/6. Zigzag Conversion/solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/6. Zigzag Conversion/solution.cpp -------------------------------------------------------------------------------- /Medium/6. Zigzag Conversion/solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/6. Zigzag Conversion/solution.java -------------------------------------------------------------------------------- /Medium/61. Rotate List/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/61. Rotate List/sol.cpp -------------------------------------------------------------------------------- /Medium/61. Rotate List/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/61. Rotate List/sol.java -------------------------------------------------------------------------------- /Medium/61. Rotate List/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/61. Rotate List/sol.md -------------------------------------------------------------------------------- /Medium/62. Unique Paths/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/62. Unique Paths/sol.java -------------------------------------------------------------------------------- /Medium/62. Unique Paths/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/62. Unique Paths/sol.md -------------------------------------------------------------------------------- /Medium/63. Unique Paths II/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/63. Unique Paths II/README.md -------------------------------------------------------------------------------- /Medium/63. Unique Paths II/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/63. Unique Paths II/Solution.java -------------------------------------------------------------------------------- /Medium/7. Reverse Integer/Constant space approach/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/7. Reverse Integer/Constant space approach/Solution.java -------------------------------------------------------------------------------- /Medium/7. Reverse Integer/Constant space approach/Solution.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/7. Reverse Integer/Constant space approach/Solution.md -------------------------------------------------------------------------------- /Medium/7. Reverse Integer/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/7. Reverse Integer/sol.cpp -------------------------------------------------------------------------------- /Medium/7. Reverse Integer/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/7. Reverse Integer/sol.java -------------------------------------------------------------------------------- /Medium/7. Reverse Integer/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/7. Reverse Integer/sol.md -------------------------------------------------------------------------------- /Medium/725. Split List in Parts/sol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/725. Split List in Parts/sol.java -------------------------------------------------------------------------------- /Medium/725. Split List in Parts/sol.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/725. Split List in Parts/sol.md -------------------------------------------------------------------------------- /Medium/779. K-th Symbol in Grammar/Kth_Symbol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/779. K-th Symbol in Grammar/Kth_Symbol.cpp -------------------------------------------------------------------------------- /Medium/779. K-th Symbol in Grammar/Kth_Symbol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/779. K-th Symbol in Grammar/Kth_Symbol.java -------------------------------------------------------------------------------- /Medium/779. K-th Symbol in Grammar/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/779. K-th Symbol in Grammar/README.md -------------------------------------------------------------------------------- /Medium/8. String to Integer (atoi)/Solution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/8. String to Integer (atoi)/Solution.js -------------------------------------------------------------------------------- /Medium/80. Remove-duplicates-from-sorted-array/remove-duplicates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/80. Remove-duplicates-from-sorted-array/remove-duplicates.py -------------------------------------------------------------------------------- /Medium/814. Binary Tree Pruning/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/814. Binary Tree Pruning/README.md -------------------------------------------------------------------------------- /Medium/823. Binary Trees With Factors/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/823. Binary Trees With Factors/README.md -------------------------------------------------------------------------------- /Medium/823. Binary Trees With Factors/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/823. Binary Trees With Factors/Solution.java -------------------------------------------------------------------------------- /Medium/853. Car Fleet/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/853. Car Fleet/README.md -------------------------------------------------------------------------------- /Medium/853. Car Fleet/Solution.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/853. Car Fleet/Solution.js -------------------------------------------------------------------------------- /Medium/967. Numbers With Same Consecutive Differences/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/967. Numbers With Same Consecutive Differences/README.md -------------------------------------------------------------------------------- /Medium/967. Numbers With Same Consecutive Differences/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/967. Numbers With Same Consecutive Differences/Solution.cpp -------------------------------------------------------------------------------- /Medium/967. Numbers With Same Consecutive Differences/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/967. Numbers With Same Consecutive Differences/Solution.java -------------------------------------------------------------------------------- /Medium/967. Numbers With Same Consecutive Differences/Solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/967. Numbers With Same Consecutive Differences/Solution.py -------------------------------------------------------------------------------- /Medium/974. Subarray Sums Divisible by K/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/974. Subarray Sums Divisible by K/README.md -------------------------------------------------------------------------------- /Medium/974. Subarray Sums Divisible by K/Solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/974. Subarray Sums Divisible by K/Solution.cpp -------------------------------------------------------------------------------- /Medium/974. Subarray Sums Divisible by K/Solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/974. Subarray Sums Divisible by K/Solution.java -------------------------------------------------------------------------------- /Medium/974. Subarray Sums Divisible by K/Solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/974. Subarray Sums Divisible by K/Solution.py -------------------------------------------------------------------------------- /Medium/98. Valid BST/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/98. Valid BST/README.md -------------------------------------------------------------------------------- /Medium/98. Valid BST/solution.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/98. Valid BST/solution.cpp -------------------------------------------------------------------------------- /Medium/98. Valid BST/solution.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/98. Valid BST/solution.java -------------------------------------------------------------------------------- /Medium/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/Medium/README.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/README.md -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/godkingjay/LeetCode/HEAD/_config.yml --------------------------------------------------------------------------------