These are my solutions to LeetCode problems.
Progress: Solved 485/1397.
# | Title | Solution | Difficulty |
---|---|---|---|
19 | Remove Nth Node From End of List | Java | Medium |
21 | Merge Two Sorted Lists | Java | Easy |
24 | Swap Nodes in Pairs | Java | Medium |
61 | Rotate List | Java | Medium |
82 | Remove Duplicates from Sorted List II | Java | Medium |
83 | Remove Duplicates from Sorted List | Java | Easy |
86 | Partition List | Java | Medium |
92 | Reverse Linked List II | Java | Medium |
141 | LinkedList Cycle | Java | Easy |
142 | LinkedList Cycle II | Java | Medium |
143 | Reorder List | Java | Medium |
147 | Insertion Sort Lists | Java | Medium |
160 | Insertion of Two Linked Lists | Java | Easy |
203 | Remove Linked List Elements | Java | Easy |
206 | Reverse Linked List | Java | Easy |
234 | Palindrome Linked List | Java | Easy |
237 | Delete Node In a Linked List | Java | Easy |
328 | Odd Even Linked List | Java | Medium |
707 | Design Linked List | Java | Easy |
876 | Middle Of the Linked List | Java | Easy |
# | Title | Solution | Difficulty |
---|---|---|---|
20 | Valid Parentheses | Java | Easy |
347 | Top K Frequent Elements | Java | Medium |
406 | Queue Reconstruction By Height | Java | Medium |
451 | Sort Characters by Frequency | Java | Medium |
739 | Daily Temperatures | Java | Medium |
946 | Validate Stack Sequences | Java | Medium |
973 | K Closest Points To Origin | Java | Medium |
1047 | Remove All Adjacent Duplicates In String | Java | Easy |
# | Title | Solution | Difficulty |
---|---|---|---|
69 | Sqrt(x) | Java | Easy |
89 | Gray Code | Java | Medium |
168 | Excel Sheet Column Title | Java | Easy |
171 | Excel Sheet Column Number | Java | Easy |
202 | Happy Number | Java | Easy |
258 | Add Digits | Java | Easy |
338 | Counting Bits | Java | Medium |
380 | Insert Delete getRandom O(1) | Java | Medium |
419 | Battleships In a Board | Java | Medium |
476 | Number Complement | Java | Easy |
509 | Fibonacci Number | Java | Easy |
575 | Distribute Candies | Java | Easy |
693 | Binary Number with Alternating Bits | Java | Easy |
728 | Self Dividing Numbers | Java | Easy |
868 | Binary Gap | Java | Easy |
942 | DI String Match | Java | Easy |