An open API service indexing awesome lists of open source software.

https://github.com/4211421036/leetcode

Collection of problem solving and flow of thinking on the LeetCode website
https://github.com/4211421036/leetcode

leetcode leetcode-solutions

Last synced: 5 months ago
JSON representation

Collection of problem solving and flow of thinking on the LeetCode website

Awesome Lists containing this project

README

          

# LeetCode Solutions Progress

| Difficulty | Problem | Solution | Status | Runtime | Updated At |
|------------|---------|----------|--------|---------|------------|
| easy | Remove Duplicates from Sorted Array | [26. Remove Duplicates from Sorted Array.cpp](easy/26.%20Remove%20Duplicates%20from%20Sorted%20Array.cpp) | ✅ Accepted | 78 ms | 2025-04-23 00:03 |
| easy | Valid Parentheses | [20. Valid Parentheses.cpp](easy/20.%20Valid%20Parentheses.cpp) | ✅ Accepted | 30 ms | 2025-04-23 00:03 |
| easy | Palindrome Number | [9. Palindrome Number.cpp](easy/9.%20Palindrome%20Number.cpp) | ✅ Accepted | 10 ms | 2025-04-23 00:03 |
| easy | Longest Common Prefix | [14. Longest Common Prefix.cpp](easy/14.%20Longest%20Common%20Prefix.cpp) | ✅ Accepted | 50 ms | 2025-04-23 00:03 |
| easy | Counter II | [2665. Counter II.cpp](easy/2665.%20Counter%20II.cpp) | ❌ Error | 23 ms | 2025-04-23 00:03 |
| easy | Two Sum | [1. Two Sum.cpp](easy/1.%20Two%20Sum.cpp) | ✅ Accepted | 21 ms | 2025-04-23 00:03 |
| easy | Length of Last Word | [58. Length of Last Word.cpp](easy/58.%20Length%20of%20Last%20Word.cpp) | ✅ Accepted | 16 ms | 2025-04-23 00:03 |
| easy | Merge Two Sorted Lists | [21. Merge Two Sorted Lists.cpp](easy/21.%20Merge%20Two%20Sorted%20Lists.cpp) | ✅ Accepted | 76 ms | 2025-04-23 00:03 |
| easy | Remove Element | [27. Remove Element.cpp](easy/27.%20Remove%20Element.cpp) | ✅ Accepted | 45 ms | 2025-04-23 00:03 |
| easy | Find the Index of the First Occurrence in a String | [28. Find the Index of the First Occurrence in a String.cpp](easy/28.%20Find%20the%20Index%20of%20the%20First%20Occurrence%20in%20a%20String.cpp) | ✅ Accepted | 87 ms | 2025-04-23 00:03 |
| easy | Search Insert Position | [35. Search Insert Position.cpp](easy/35.%20Search%20Insert%20Position.cpp) | ✅ Accepted | 65 ms | 2025-04-23 00:03 |
| easy | Count Largest Group | [1399. Count Largest Group.cpp](easy/1399.%20Count%20Largest%20Group.cpp) | ✅ Accepted | 28 ms | 2025-04-23 00:03 |
| easy | Roman to Integer | [13. Roman to Integer.cpp](easy/13.%20Roman%20to%20Integer.cpp) | ✅ Accepted | 57 ms | 2025-04-23 00:03 |
| easy | Sort Integers by The Number of 1 Bits | [1356. Sort Integers by The Number of 1 Bits.cpp](easy/1356.%20Sort%20Integers%20by%20The%20Number%20of%201%20Bits.cpp) | ✅ Accepted | 60 ms | 2025-04-23 00:03 |
| medium | Search in Rotated Sorted Array | [33. Search in Rotated Sorted Array.cpp](medium/33.%20Search%20in%20Rotated%20Sorted%20Array.cpp) | ✅ Accepted | 43 ms | 2025-04-23 00:03 |
| medium | Spiral Matrix II | [59. Spiral Matrix II.cpp](medium/59.%20Spiral%20Matrix%20II.cpp) | ✅ Accepted | 19 ms | 2025-04-23 00:03 |
| medium | Permutations | [46. Permutations.cpp](medium/46.%20Permutations.cpp) | ✅ Accepted | 106 ms | 2025-04-23 00:03 |
| medium | Swap Nodes in Pairs | [24. Swap Nodes in Pairs.cpp](medium/24.%20Swap%20Nodes%20in%20Pairs.cpp) | ✅ Accepted | 61 ms | 2025-04-23 00:03 |
| medium | Find First and Last Position of Element in Sorted Array | [34. Find First and Last Position of Element in Sorted Array.cpp](medium/34.%20Find%20First%20and%20Last%20Position%20of%20Element%20in%20Sorted%20Array.cpp) | ✅ Accepted | 65 ms | 2025-04-23 00:03 |
| medium | Combination Sum | [39. Combination Sum.cpp](medium/39.%20Combination%20Sum.cpp) | ✅ Accepted | 15 ms | 2025-04-23 00:03 |
| medium | Rotate Image | [48. Rotate Image.cpp](medium/48.%20Rotate%20Image.cpp) | ✅ Accepted | 75 ms | 2025-04-23 00:03 |
| medium | Non-decreasing Array | [665. Non-decreasing Array.cpp](medium/665.%20Non-decreasing%20Array.cpp) | ✅ Accepted | 106 ms | 2025-04-23 00:03 |
| medium | Merge Intervals | [56. Merge Intervals.cpp](medium/56.%20Merge%20Intervals.cpp) | ✅ Accepted | 33 ms | 2025-04-23 00:03 |
| medium | Longest Absolute File Path | [388. Longest Absolute File Path.cpp](medium/388.%20Longest%20Absolute%20File%20Path.cpp) | ✅ Accepted | 55 ms | 2025-04-23 00:03 |
| medium | Count and Say | [38. Count and Say.cpp](medium/38.%20Count%20and%20Say.cpp) | ✅ Accepted | 28 ms | 2025-04-23 00:03 |
| medium | Insert Interval | [57. Insert Interval.cpp](medium/57.%20Insert%20Interval.cpp) | ✅ Accepted | 23 ms | 2025-04-23 00:03 |
| medium | Generate Parentheses | [22. Generate Parentheses.cpp](medium/22.%20Generate%20Parentheses.cpp) | ✅ Accepted | 19 ms | 2025-04-23 00:03 |
| medium | Maximum Subarray | [53. Maximum Subarray.cpp](medium/53.%20Maximum%20Subarray.cpp) | ✅ Accepted | 69 ms | 2025-04-23 00:03 |
| medium | Pow(x, n) | [50. Pow(x, n).cpp](medium/50.%20Pow(x,%20n).cpp) | ✅ Accepted | 109 ms | 2025-04-23 00:03 |
| medium | Next Permutation | [31. Next Permutation.cpp](medium/31.%20Next%20Permutation.cpp) | ✅ Accepted | 29 ms | 2025-04-23 00:03 |
| medium | 3Sum Closest | [16. 3Sum Closest.cpp](medium/16.%203Sum%20Closest.cpp) | ✅ Accepted | 65 ms | 2025-04-23 00:03 |
| medium | Valid Sudoku | [36. Valid Sudoku.cpp](medium/36.%20Valid%20Sudoku.cpp) | ✅ Accepted | 15 ms | 2025-04-23 00:03 |
| medium | Rotate List | [61. Rotate List.cpp](medium/61.%20Rotate%20List.cpp) | ✅ Accepted | 97 ms | 2025-04-23 00:03 |
| medium | Combination Sum II | [40. Combination Sum II.cpp](medium/40.%20Combination%20Sum%20II.cpp) | ✅ Accepted | 85 ms | 2025-04-23 00:03 |
| medium | Container With Most Water | [11. Container With Most Water.cpp](medium/11.%20Container%20With%20Most%20Water.cpp) | ✅ Accepted | 63 ms | 2025-04-23 00:03 |
| medium | Integer to Roman | [12. Integer to Roman.cpp](medium/12.%20Integer%20to%20Roman.cpp) | ✅ Accepted | 56 ms | 2025-04-23 00:03 |
| medium | Count Good Numbers | [1922. Count Good Numbers.cpp](medium/1922.%20Count%20Good%20Numbers.cpp) | ✅ Accepted | 106 ms | 2025-04-23 00:03 |
| medium | Longest Palindromic Substring | [5. Longest Palindromic Substring.cpp](medium/5.%20Longest%20Palindromic%20Substring.cpp) | ✅ Accepted | 25 ms | 2025-04-23 00:03 |
| medium | 3Sum | [15. 3Sum.cpp](medium/15.%203Sum.cpp) | ✅ Accepted | 109 ms | 2025-04-23 00:03 |
| medium | 4Sum | [18. 4Sum.cpp](medium/18.%204Sum.cpp) | ✅ Accepted | 15 ms | 2025-04-23 00:03 |
| medium | Divide Two Integers | [29. Divide Two Integers.cpp](medium/29.%20Divide%20Two%20Integers.cpp) | ✅ Accepted | 33 ms | 2025-04-23 00:03 |
| medium | Group Anagrams | [49. Group Anagrams.cpp](medium/49.%20Group%20Anagrams.cpp) | ✅ Accepted | 21 ms | 2025-04-23 00:03 |
| medium | Jump Game | [55. Jump Game.cpp](medium/55.%20Jump%20Game.cpp) | ✅ Accepted | 45 ms | 2025-04-23 00:03 |
| medium | Reverse Integer | [7. Reverse Integer.cpp](medium/7.%20Reverse%20Integer.cpp) | ✅ Accepted | 63 ms | 2025-04-23 00:03 |
| medium | Letter Combinations of a Phone Number | [17. Letter Combinations of a Phone Number.cpp](medium/17.%20Letter%20Combinations%20of%20a%20Phone%20Number.cpp) | ✅ Accepted | 79 ms | 2025-04-23 00:03 |
| medium | Remove Nth Node From End of List | [19. Remove Nth Node From End of List.cpp](medium/19.%20Remove%20Nth%20Node%20From%20End%20of%20List.cpp) | ✅ Accepted | 61 ms | 2025-04-23 00:03 |
| medium | Permutations II | [47. Permutations II.cpp](medium/47.%20Permutations%20II.cpp) | ✅ Accepted | 68 ms | 2025-04-23 00:03 |
| medium | String to Integer (atoi) | [8. String to Integer (atoi).cpp](medium/8.%20String%20to%20Integer%20(atoi).cpp) | ✅ Accepted | 93 ms | 2025-04-23 00:03 |
| medium | Longest Substring Without Repeating Characters | [3. Longest Substring Without Repeating Characters.cpp](medium/3.%20Longest%20Substring%20Without%20Repeating%20Characters.cpp) | ✅ Accepted | 56 ms | 2025-04-23 00:03 |
| medium | Multiply Strings | [43. Multiply Strings.cpp](medium/43.%20Multiply%20Strings.cpp) | ✅ Accepted | 52 ms | 2025-04-23 00:03 |
| medium | Zigzag Conversion | [6. Zigzag Conversion.cpp](medium/6.%20Zigzag%20Conversion.cpp) | ✅ Accepted | 39 ms | 2025-04-23 00:03 |
| medium | Count the Hidden Sequences | [2145. Count the Hidden Sequences.cpp](medium/2145.%20Count%20the%20Hidden%20Sequences.cpp) | ✅ Accepted | 52 ms | 2025-04-23 00:03 |
| medium | Add Two Numbers | [2. Add Two Numbers.cpp](medium/2.%20Add%20Two%20Numbers.cpp) | ✅ Accepted | 107 ms | 2025-04-23 00:03 |
| medium | Jump Game II | [45. Jump Game II.cpp](medium/45.%20Jump%20Game%20II.cpp) | ✅ Accepted | 37 ms | 2025-04-23 00:03 |
| medium | Find Kth Bit in Nth Binary String | [1545. Find Kth Bit in Nth Binary String.cpp](medium/1545.%20Find%20Kth%20Bit%20in%20Nth%20Binary%20String.cpp) | ✅ Accepted | 35 ms | 2025-04-23 00:03 |
| hard | Best Time to Buy and Sell Stock III | [123. Best Time to Buy and Sell Stock III.cpp](hard/123.%20Best%20Time%20to%20Buy%20and%20Sell%20Stock%20III.cpp) | ✅ Accepted | 15 ms | 2025-04-23 00:03 |
| hard | Minimum Window Substring | [76. Minimum Window Substring.cpp](hard/76.%20Minimum%20Window%20Substring.cpp) | ✅ Accepted | 57 ms | 2025-04-23 00:03 |
| hard | Merge k Sorted Lists | [23. Merge k Sorted Lists.cpp](hard/23.%20Merge%20k%20Sorted%20Lists.cpp) | ✅ Accepted | 40 ms | 2025-04-23 00:03 |
| hard | Smallest Palindromic Rearrangement II | [3518. Smallest Palindromic Rearrangement II.cpp](hard/3518.%20Smallest%20Palindromic%20Rearrangement%20II.cpp) | ✅ Accepted | 18 ms | 2025-04-23 00:03 |
| hard | Scramble String | [87. Scramble String.cpp](hard/87.%20Scramble%20String.cpp) | ✅ Accepted | 83 ms | 2025-04-23 00:03 |
| hard | Minimum Cost to Split an Array | [2547. Minimum Cost to Split an Array.cpp](hard/2547.%20Minimum%20Cost%20to%20Split%20an%20Array.cpp) | ✅ Accepted | 62 ms | 2025-04-23 00:03 |
| hard | Count Unique Characters of All Substrings of a Given String | [828. Count Unique Characters of All Substrings of a Given String.cpp](hard/828.%20Count%20Unique%20Characters%20of%20All%20Substrings%20of%20a%20Given%20String.cpp) | ✅ Accepted | 33 ms | 2025-04-23 00:03 |
| hard | Reverse Nodes in k-Group | [25. Reverse Nodes in k-Group.cpp](hard/25.%20Reverse%20Nodes%20in%20k-Group.cpp) | ✅ Accepted | 38 ms | 2025-04-23 00:03 |
| hard | Find X Value of Array II | [3525. Find X Value of Array II.cpp](hard/3525.%20Find%20X%20Value%20of%20Array%20II.cpp) | ✅ Accepted | 70 ms | 2025-04-23 00:03 |
| hard | Word Ladder | [127. Word Ladder.cpp](hard/127.%20Word%20Ladder.cpp) | ✅ Accepted | 11 ms | 2025-04-23 00:03 |
| hard | Number of Paths with Max Score | [1301. Number of Paths with Max Score.cpp](hard/1301.%20Number%20of%20Paths%20with%20Max%20Score.cpp) | ✅ Accepted | 90 ms | 2025-04-23 00:03 |
| hard | Distinct Subsequences | [115. Distinct Subsequences.cpp](hard/115.%20Distinct%20Subsequences.cpp) | ✅ Accepted | 16 ms | 2025-04-23 00:03 |
| hard | Text Justification | [68. Text Justification.cpp](hard/68.%20Text%20Justification.cpp) | ✅ Accepted | 66 ms | 2025-04-23 00:03 |
| hard | Minimum Sum of Values by Dividing Array | [3117. Minimum Sum of Values by Dividing Array.cpp](hard/3117.%20Minimum%20Sum%20of%20Values%20by%20Dividing%20Array.cpp) | ✅ Accepted | 92 ms | 2025-04-23 00:03 |
| hard | Groups of Strings | [2157. Groups of Strings.cpp](hard/2157.%20Groups%20of%20Strings.cpp) | ✅ Accepted | 71 ms | 2025-04-23 00:03 |
| hard | N-Queens | [51. N-Queens.cpp](hard/51.%20N-Queens.cpp) | ✅ Accepted | 53 ms | 2025-04-23 00:03 |
| hard | Word Ladder II | [126. Word Ladder II.cpp](hard/126.%20Word%20Ladder%20II.cpp) | ✅ Accepted | 84 ms | 2025-04-23 00:03 |
| hard | Maximal Rectangle | [85. Maximal Rectangle.cpp](hard/85.%20Maximal%20Rectangle.cpp) | ✅ Accepted | 93 ms | 2025-04-23 00:03 |
| hard | Count the Number of Ideal Arrays | [2338. Count the Number of Ideal Arrays.cpp](hard/2338.%20Count%20the%20Number%20of%20Ideal%20Arrays.cpp) | ✅ Accepted | 52 ms | 2025-04-23 00:03 |
| hard | First Missing Positive | [41. First Missing Positive.cpp](hard/41.%20First%20Missing%20Positive.cpp) | ✅ Accepted | 81 ms | 2025-04-23 00:03 |
| hard | Critical Connections in a Network | [1192. Critical Connections in a Network.cpp](hard/1192.%20Critical%20Connections%20in%20a%20Network.cpp) | ✅ Accepted | 80 ms | 2025-04-23 00:03 |
| hard | Valid Number | [65. Valid Number.cpp](hard/65.%20Valid%20Number.cpp) | ✅ Accepted | 78 ms | 2025-04-23 00:03 |
| hard | N-Queens II | [52. N-Queens II.cpp](hard/52.%20N-Queens%20II.cpp) | ✅ Accepted | 107 ms | 2025-04-23 00:03 |
| hard | Largest Rectangle in Histogram | [84. Largest Rectangle in Histogram.cpp](hard/84.%20Largest%20Rectangle%20in%20Histogram.cpp) | ✅ Accepted | 70 ms | 2025-04-23 00:03 |
| hard | Regular Expression Matching | [10. Regular Expression Matching.cpp](hard/10.%20Regular%20Expression%20Matching.cpp) | ✅ Accepted | 65 ms | 2025-04-23 00:03 |
| hard | Construct Target Array With Multiple Sums | [1354. Construct Target Array With Multiple Sums.cpp](hard/1354.%20Construct%20Target%20Array%20With%20Multiple%20Sums.cpp) | ✅ Accepted | 15 ms | 2025-04-23 00:03 |
| hard | Sudoku Solver | [37. Sudoku Solver.cpp](hard/37.%20Sudoku%20Solver.cpp) | ✅ Accepted | 59 ms | 2025-04-23 00:03 |
| hard | Code Testcase Testcase Test Result 124. Binary Tree Maximum Path Sum | [Code Testcase Testcase Test Result 124. Binary Tree Maximum Path Sum.cpp](hard/Code%20Testcase%20Testcase%20Test%20Result%20124.%20Binary%20Tree%20Maximum%20Path%20Sum.cpp) | ✅ Accepted | 67 ms | 2025-04-23 00:03 |
| hard | Trapping Rain Water | [42. Trapping Rain Water.cpp](hard/42.%20Trapping%20Rain%20Water.cpp) | ✅ Accepted | 92 ms | 2025-04-23 00:03 |
| hard | Super Washing Machines | [517. Super Washing Machines.cpp](hard/517.%20Super%20Washing%20Machines.cpp) | ✅ Accepted | 41 ms | 2025-04-23 00:03 |
| hard | Find Minimum in Rotated Sorted Array II | [154. Find Minimum in Rotated Sorted Array II.ex](hard/154.%20Find%20Minimum%20in%20Rotated%20Sorted%20Array%20II.ex) | ✅ Accepted | 52 ms | 2025-04-23 00:03 |
| hard | Word Break II | [140. Word Break II.ex](hard/140.%20Word%20Break%20II.ex) | ✅ Accepted | 61 ms | 2025-04-23 00:03 |
| hard | Candy | [135. Candy.exs](hard/135.%20Candy.exs) | ✅ Accepted | 105 ms | 2025-04-23 00:03 |
| hard | Palindrome Partitioning II | [132. Palindrome Partitioning II.exs](hard/132.%20Palindrome%20Partitioning%20II.exs) | ✅ Accepted | 67 ms | 2025-04-23 00:03 |
| hard | Max Points on a Line | [149. Max Points on a Line.exs](hard/149.%20Max%20Points%20on%20a%20Line.exs) | ✅ Accepted | 62 ms | 2025-04-23 00:03 |