NeetCode.io
Leetcode solutions for πThis repo hosts the solutions found on NeetCode.io including the solutions shown on the NeetCode YouTube channel. The site will periodically be updated with new solutions from this repo!
Solutions from these languages will be linked from NeetCode.io:
- Python
- C++
- Java
- Javascript
Solutions are also welcome for any other supported language on leetcode.com!
Contributing
Please read the contributing guidlines before opening a PR
To contribute, please fork this repo and open a PR adding a missing solution from the supported languages.
If you would like to have collaborator permissions on the repo to merge your own PRs or review others' PRs please let me know.
Credits
Missing Solutions
Arrays & Hashing
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
217 - Contains Duplicate | |||||||||||||
242 - Valid Anagram | β |
||||||||||||
1299 - Replace Elements With Greatest Element On Right Side | β |
β |
β |
β |
|||||||||
392 - Is Subsequence | β |
β |
β |
β |
β |
||||||||
58 - Length of Last Word | β |
β |
β |
β |
β |
||||||||
1 - Two Sum | |||||||||||||
14 - Longest Common Prefix | β |
||||||||||||
49 - Group Anagrams | β |
β |
|||||||||||
118 - Pascals Triangle | β |
β |
β |
β |
β |
β |
|||||||
27 - Remove Element | β |
β |
β |
β |
|||||||||
929 - Unique Email Addresses | β |
β |
β |
β |
β |
β |
β |
β |
|||||
205 - Isomorphic Strings | β |
β |
β |
β |
β |
β |
β |
β |
|||||
605 - Can Place Flowers | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|||
169 - Majority Element | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|||
496 - Next Greater Element I | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
724 - Find Pivot Index | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
448 - Find All Numbers Disappeared In An Array | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|||
1189 - Maximum Number of Balloons | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
290 - Word Pattern | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
347 - Top K Frequent Elements | β |
β |
|||||||||||
238 - Product of Array Except Self | β |
||||||||||||
36 - Valid Sudoku | β |
β |
|||||||||||
271 - Encode And Decode Strings | β |
β |
β |
β |
β |
β |
|||||||
128 - Longest Consecutive Sequence | β |
β |
|||||||||||
75 - Sort Colors | β |
β |
β |
β |
β |
β |
β |
β |
|||||
535 - Encode And Decode Tinyurl | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
554 - Brick Wall | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
122 - Best Time to Buy And Sell Stock II | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
560 - Subarray Sum Equals K | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
1930 - Unique Length 3 Palindromic Subsequences | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
1963 - Minimum Number of Swaps to Make The String Balanced | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
2001 - Number of Pairs of Interchangeable Rectangles | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
2002 - Maximum Product of The Length of Two Palindromic Subsequences | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
2017 - Grid Game | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
438 - Find All Anagrams In a String | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|||
28 - Find The Index of The First Occurrence In a String | β |
β |
|||||||||||
280 - Wiggle Sort | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
179 - Largest Number | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
523 - Continuous Subarray Sum | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
838 - Push Dominoes | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
187 - Repeated Dna Sequences | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
380 - Insert Delete Get Random O(1) | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
1461 - Check if a String Contains All Binary Codes of Size K | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
304 - Range Sum Query 2D Immutable | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
665 - Non Decreasing Array | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
41 - First Missing Positive | β |
β |
β |
β |
β |
Two Pointers
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
125 - Valid Palindrome | β |
||||||||||||
680 - Valid Palindrome II | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
1984 - Minimum Difference Between Highest And Lowest of K Scores | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
344 - Reverse String | β |
β |
β |
β |
β |
β |
β |
β |
β |
||||
88 - Merge Sorted Array | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
283 - Move Zeroes | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
26 - Remove Duplicates From Sorted Array | β |
||||||||||||
167 - Two Sum II Input Array Is Sorted | β |
||||||||||||
15 - 3Sum | |||||||||||||
18 - 4Sum | β |
β |
β |
β |
β |
β |
|||||||
11 - Container With Most Water | β |
||||||||||||
1498 - Number of Subsequences That Satisfy The Given Sum Condition | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
189 - Rotate Array | β |
β |
β |
β |
β |
β |
|||||||
1968 - Array With Elements Not Equal to Average of Neighbors | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
881 - Boats to Save People | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
42 - Trapping Rain Water | β |
Sliding Window
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
121 - Best Time to Buy And Sell Stock | β |
||||||||||||
3 - Longest Substring Without Repeating Characters | |||||||||||||
424 - Longest Repeating Character Replacement | β |
β |
|||||||||||
567 - Permutation In String | β |
β |
β |
β |
|||||||||
1838 - Frequency of The Most Frequent Element | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
1888 - Minimum Number of Flips to Make The Binary String Alternating | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
209 - Minimum Size Subarray Sum | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
658 - Find K Closest Elements | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
76 - Minimum Window Substring | β |
β |
β |
||||||||||
239 - Sliding Window Maximum | β |
β |
β |
β |
β |
β |
Stack
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20 - Valid Parentheses | |||||||||||||
682 - Baseball Game | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
225 - Implement Stack Using Queues | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
155 - Min Stack | β |
β |
β |
β |
|||||||||
150 - Evaluate Reverse Polish Notation | β |
β |
|||||||||||
22 - Generate Parentheses | β |
β |
β |
||||||||||
735 - Asteroid Collision | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
739 - Daily Temperatures | β |
β |
|||||||||||
901 - Online Stock Span | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
853 - Car Fleet | β |
β |
β |
β |
β |
||||||||
71 - Simplify Path | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
394 - Decode String | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
402 - Remove K Digits | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
1209 - Remove All Adjacent Duplicates In String II | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|||
132 - 132 Pattern | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
895 - Maximum Frequency Stack | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
84 - Largest Rectangle In Histogram | β |
β |
β |
Binary Search
Linked List
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
206 - Reverse Linked List | β |
||||||||||||
21 - Merge Two Sorted Lists | |||||||||||||
234 - Palindrome Linked List | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|||
203 - Remove Linked List Elements | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
83 - Remove Duplicates From Sorted List | β |
β |
β |
β |
β |
β |
β |
β |
|||||
160 - Intersection of Two Linked Lists | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
143 - Reorder List | β |
β |
β |
β |
|||||||||
19 - Remove Nth Node From End of List | |||||||||||||
138 - Copy List With Random Pointer | β |
β |
β |
||||||||||
2 - Add Two Numbers | |||||||||||||
141 - Linked List Cycle | β |
||||||||||||
287 - Find The Duplicate Number | β |
β |
|||||||||||
24 - Swap Nodes In Pairs | β |
||||||||||||
148 - Sort List | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
86 - Partition List | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
61 - Rotate List | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|||
92 - Reverse Linked List II | β |
β |
β |
β |
β |
β |
β |
β |
|||||
622 - Design Circular Queue | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
147 - Insertion Sort List | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
146 - LRU Cache | β |
β |
β |
β |
β |
β |
|||||||
23 - Merge K Sorted Lists | β |
||||||||||||
25 - Reverse Nodes In K Group | β |
β |
β |
β |
Trees
Tries
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
208 - Implement Trie Prefix Tree | β |
β |
|||||||||||
211 - Design Add And Search Words Data Structure | β |
β |
β |
β |
|||||||||
212 - Word Search II | β |
β |
β |
β |
β |
Heap / Priority Queue
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
703 - Kth Largest Element In a Stream | β |
β |
β |
β |
β |
||||||||
1046 - Last Stone Weight | β |
β |
β |
β |
β |
||||||||
973 - K Closest Points to Origin | β |
β |
β |
β |
β |
β |
β |
||||||
215 - Kth Largest Element In An Array | β |
β |
β |
β |
β |
β |
|||||||
621 - Task Scheduler | β |
β |
β |
β |
β |
β |
β |
||||||
355 - Design Twitter | β |
β |
β |
β |
β |
β |
β |
β |
|||||
1834 - Single Threaded Cpu | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
1845 - Seat Reservation Manager | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
1882 - Process Tasks Using Servers | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
1985 - Find The Kth Largest Integer In The Array | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|||
767 - Reorganize String | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
1405 - Longest Happy String | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
1094 - Car Pooling | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
295 - Find Median From Data Stream | β |
β |
β |
β |
β |
β |
β |
||||||
1383 - Maximum Performance of a Team | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
Backtracking
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
78 - Subsets | β |
β |
|||||||||||
39 - Combination Sum | β |
β |
β |
||||||||||
77 - Combinations | β |
β |
β |
β |
β |
β |
β |
β |
|||||
46 - Permutations | β |
β |
β |
||||||||||
90 - Subsets II | β |
β |
β |
β |
β |
||||||||
40 - Combination Sum II | β |
β |
β |
β |
β |
||||||||
47 - Permutations II | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
79 - Word Search | β |
β |
β |
β |
|||||||||
131 - Palindrome Partitioning | β |
β |
β |
β |
β |
β |
|||||||
93 - Restore Ip Addresses | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
17 - Letter Combinations of a Phone Number | β |
β |
β |
β |
β |
||||||||
473 - Matchsticks to Square | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
1849 - Splitting a String Into Descending Consecutive Values | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
1980 - Find Unique Binary String | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
1239 - Maximum Length of a Concatenated String With Unique Characters | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
698 - Partition to K Equal Sum Subsets | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
51 - N Queens | β |
β |
β |
β |
β |
β |
|||||||
52 - N Queens II | β |
β |
β |
β |
β |
β |
β |
β |
β |
Graphs
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
463 - Island Perimeter | β |
β |
β |
β |
β |
β |
β |
β |
β |
||||
953 - Verifying An Alien Dictionary | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
200 - Number of Islands | β |
β |
β |
||||||||||
133 - Clone Graph | β |
β |
β |
β |
|||||||||
695 - Max Area of Island | β |
β |
β |
β |
|||||||||
1905 - Count Sub Islands | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|||
417 - Pacific Atlantic Water Flow | β |
β |
β |
β |
β |
β |
|||||||
130 - Surrounded Regions | β |
β |
β |
||||||||||
1466 - Reorder Routes to Make All Paths Lead to The City Zero | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
994 - Rotting Oranges | β |
β |
β |
β |
β |
||||||||
286 - Walls And Gates | β |
β |
β |
β |
β |
β |
β |
β |
|||||
909 - Snakes And Ladders | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
||
752 - Open The Lock | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|||
802 - Find Eventual Safe States | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
207 - Course Schedule | β |
β |
β |
β |
β |
||||||||
210 - Course Schedule II | β |
β |
β |
β |
β |
β |
β |
||||||
1958 - Check if Move Is Legal | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
934 - Shortest Bridge | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
684 - Redundant Connection | β |
β |
β |
β |
|||||||||
323 - Number of Connected Components In An Undirected Graph | β |
β |
β |
β |
β |
β |
β |
||||||
261 - Graph Valid Tree | β |
β |
β |
β |
β |
β |
|||||||
1553 - Minimum Number of Days to Eat N Oranges | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
127 - Word Ladder | β |
β |
β |
β |
β |
β |
Advanced Graphs
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
332 - Reconstruct Itinerary | β |
β |
β |
β |
β |
β |
β |
||||||
1584 - Min Cost to Connect All Points | β |
β |
β |
β |
β |
β |
|||||||
743 - Network Delay Time | β |
β |
β |
β |
β |
β |
β |
β |
|||||
778 - Swim In Rising Water | β |
β |
β |
β |
β |
β |
β |
β |
|||||
269 - Alien Dictionary | β |
β |
β |
β |
β |
β |
β |
β |
|||||
787 - Cheapest Flights Within K Stops | β |
β |
β |
β |
β |
1-D Dynamic Programming
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
70 - Climbing Stairs | β |
||||||||||||
746 - Min Cost Climbing Stairs | β |
||||||||||||
198 - House Robber | |||||||||||||
213 - House Robber II | |||||||||||||
5 - Longest Palindromic Substring | |||||||||||||
647 - Palindromic Substrings | β |
β |
β |
β |
β |
||||||||
91 - Decode Ways | β |
β |
β |
β |
|||||||||
322 - Coin Change | β |
β |
β |
β |
|||||||||
152 - Maximum Product Subarray | β |
β |
|||||||||||
139 - Word Break | β |
β |
β |
β |
β |
β |
β |
β |
|||||
300 - Longest Increasing Subsequence | β |
β |
β |
β |
β |
β |
|||||||
416 - Partition Equal Subset Sum | β |
β |
β |
β |
β |
β |
β |
β |
|||||
120 - Triangle | β |
β |
β |
β |
β |
β |
β |
β |
β |
||||
740 - Delete And Earn | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
256 - Paint House | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
377 - Combination Sum IV | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
279 - Perfect Squares | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
1856 - Maximum Subarray Min Product | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
983 - Minimum Cost For Tickets | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
343 - Integer Break | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
673 - Number of Longest Increasing Subsequence | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
691 - Stickers to Spell Word | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
2-D Dynamic Programming
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62 - Unique Paths | β |
β |
β |
||||||||||
1143 - Longest Common Subsequence | β |
β |
β |
β |
|||||||||
309 - Best Time to Buy And Sell Stock With Cooldown | β |
β |
β |
||||||||||
518 - Coin Change II | β |
β |
β |
β |
β |
β |
β |
||||||
494 - Target Sum | β |
β |
β |
β |
β |
β |
|||||||
97 - Interleaving String | β |
β |
β |
β |
β |
β |
|||||||
877 - Stone Game | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
64 - Minimum Path Sum | β |
β |
β |
β |
β |
||||||||
329 - Longest Increasing Path In a Matrix | β |
β |
β |
β |
β |
β |
|||||||
221 - Maximal Square | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
5782 - Maximum Alternating Subsequence Sum | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
115 - Distinct Subsequences | β |
β |
β |
β |
β |
β |
β |
||||||
72 - Edit Distance | β |
β |
β |
β |
β |
β |
|||||||
1220 - Count Vowels Permutation | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
312 - Burst Balloons | β |
β |
β |
β |
β |
β |
β |
||||||
1866 - Number of Ways to Rearrange Sticks With K Sticks Visible | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
10 - Regular Expression Matching | β |
β |
Greedy
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53 - Maximum Subarray | β |
β |
|||||||||||
55 - Jump Game | β |
β |
|||||||||||
45 - Jump Game II | β |
β |
β |
||||||||||
1871 - Jump Game VII | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
134 - Gas Station | β |
β |
β |
||||||||||
846 - Hand of Straights | β |
β |
β |
β |
β |
β |
β |
||||||
1423 - Maximum Points You Can Obtain From Cards | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
|
1898 - Merge Triplets to Form Target Triplet | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
763 - Partition Labels | β |
β |
β |
β |
β |
β |
β |
||||||
678 - Valid Parenthesis String | β |
β |
β |
β |
β |
β |
|||||||
1921 - Eliminate Maximum Number of Monsters | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
1029 - Two City Scheduling | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
Intervals
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57 - Insert Interval | |||||||||||||
56 - Merge Intervals | β |
β |
β |
||||||||||
435 - Non Overlapping Intervals | β |
β |
β |
β |
β |
||||||||
253 - Meeting Rooms | β |
β |
β |
β |
β |
β |
β |
||||||
919 - Meeting Rooms II | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
1288 - Remove Covered Intervals | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
1851 - Minimum Interval to Include Each Query | β |
β |
β |
β |
β |
β |
β |
β |
β |
Math & Geometry
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
48 - Rotate Image | β |
β |
β |
β |
|||||||||
54 - Spiral Matrix | β |
β |
|||||||||||
73 - Set Matrix Zeroes | β |
β |
|||||||||||
202 - Happy Number | β |
β |
β |
||||||||||
66 - Plus One | β |
β |
β |
||||||||||
9 - Palindrome Number | β |
β |
|||||||||||
263 - Ugly Number | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
1260 - Shift 2D Grid | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
13 - Roman to Integer | β |
β |
|||||||||||
12 - Integer to Roman | β |
||||||||||||
50 - Pow(x, n) | β |
β |
β |
β |
β |
β |
β |
β |
|||||
43 - Multiply Strings | β |
β |
β |
β |
|||||||||
2013 - Detect Squares | β |
β |
β |
β |
β |
β |
β |
β |
|||||
1041 - Robot Bounded In Circle | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
6 - Zigzag Conversion | β |
β |
|||||||||||
2028 - Find Missing Observations | β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
β |
Bit Manipulation
Problem | C | C++ | C# | GO | Java | JS | Kotlin | Python | Ruby | Rust | Scala | Swift | TS |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
136 - Single Number | β |
β |
|||||||||||
191 - Number of 1 Bits | β |
||||||||||||
338 - Counting Bits | β |
||||||||||||
190 - Reverse Bits | β |
||||||||||||
268 - Missing Number | β |
||||||||||||
371 - Sum of Two Integers | β |
||||||||||||
7 - Reverse Integer | |||||||||||||
67 - Add Binary | β |
β |
β |
β |
β |
β |
Need to update the README? Update the template instead.