Skip to content

AxelUser/leetcode-kt

Repository files navigation

Solved problems

LeetCode problems solved in Kotlin.

Profile on LeetCode

Total: 162, Easy: 56, Medium: 86, Hard: 20.

Name Difficulty Solution
1. Two Sum Easy Source
2. Add Two Numbers Medium Source
3. Longest Substring Without Repeating Characters Medium Source
4. Median of Two Sorted Arrays Hard Source
5. Longest Palindromic Substring Medium Source
7. Reverse Integer Easy Source
8. String to Integer (atoi) Medium Source
9. Palindrome Number Easy Source
10. Regular Expression Matching Hard Source
11. Container With Most Water Medium Source
12. Integer to Roman Medium Source
14. Longest Common Prefix Easy Source
15. 3Sum Medium Source
17. Letter Combinations of a Phone Number Medium Source
18. 4Sum Medium Source
19. Remove Nth Node From End of List Medium Source
20. Valid Parentheses Easy Source
21. Merge Two Sorted Lists Easy Source
22. Generate Parentheses Medium Source
23. Merge k Sorted Lists Hard Source
26. Remove Duplicates from Sorted Array Easy Source
27. Remove Element Easy Source
28. Find the Index of the First Occurrence in a String Medium Source
31. Next Permutation Medium Source
32. Longest Valid Parentheses Hard Source
33. Search in Rotated Sorted Array Medium Source
34. Find First and Last Position of Element in Sorted Array Medium Source
35. Search Insert Position Easy Source
36. Valid Sudoku Medium Source
38. Count and Say Medium Source
41. First Missing Positive Hard Source
42. Trapping Rain Water Hard Source
45. Jump Game II Medium Source
46. Permutations Medium Source
48. Rotate Image Medium Source
49. Group Anagrams Medium Source
53. Maximum Subarray Easy Source
54. Spiral Matrix Medium Source
55. Jump Game Medium Source
56. Merge Intervals Medium Source
58. Length of Last Word Easy Source
61. Rotate List Medium Source
62. Unique Paths Medium Source
63. Unique Paths II Medium Source
64. Minimum Path Sum Medium Source
66. Plus One Easy Source
67. Add Binary Easy Source
70. Climbing Stairs Easy Source
72. Edit Distance Hard Source
73. Set Matrix Zeroes Medium Source
74. Search a 2D Matrix Medium Source
75. Sort Colors Medium Source
76. Minimum Window Substring Hard Source
79. Word Search Medium Source
80. Remove Duplicates from Sorted Array II Medium Source
81. Search in Rotated Sorted Array II Medium Source
88. Merge Sorted Array Easy Source
94. Binary Tree Inorder Traversal Easy Source
96. Unique Binary Search Trees Medium Source
98. Validate Binary Search Tree Medium Source
100. Same Tree Easy Source
101. Symmetric Tree Easy Source
102. Binary Tree Level Order Traversal Medium Source
104. Maximum Depth of Binary Tree Easy Source
105. Construct Binary Tree from Preorder and Inorder Traversal Medium Source
108. Convert Sorted Array to Binary Search Tree Easy Source
110. Balanced Binary Tree Easy Source
112. Path Sum Easy Source
113. Path Sum II Medium Source
114. Flatten Binary Tree to Linked List Medium Source
118. Pascal's Triangle Easy Source
121. Best Time to Buy and Sell Stock Easy Source
122. Best Time to Buy and Sell Stock II Easy Source
128. Longest Consecutive Sequence Medium Source
130. Surrounded Regions Medium Source
136. Single Number Easy Source
137. Single Number II Medium Source
139. Word Break Medium Source
141. Linked List Cycle Easy Source
142. Linked List Cycle II Medium Source
151. Reverse Words in a String Medium Source
153. Find Minimum in Rotated Sorted Array Medium Source
155. Min Stack Medium Source
160. Intersection of Two Linked Lists Easy Source
162. Find Peak Element Medium Source
169. Majority Element Easy Source
179. Largest Number Medium Source
189. Rotate Array Medium Source
190. Reverse Bits Easy Source
191. Number of 1 Bits Easy Source
198. House Robber Medium Source
200. Number of Islands Medium Source
206. Reverse Linked List Easy Source
209. Minimum Size Subarray Sum Medium Source
212. Word Search II Hard Source
219. Contains Duplicate II Easy Source
222. Count Complete Tree Nodes Medium Source
223. Rectangle Area Medium Source
224. Basic Calculator Hard Source
225. Implement Stack using Queues Easy Source
226. Invert Binary Tree Easy Source
232. Implement Queue using Stacks Easy Source
234. Palindrome Linked List Easy Source
237. Delete Node in a Linked List Medium Source
239. Sliding Window Maximum Hard Source
242. Valid Anagram Easy Source
260. Single Number III Medium Source
263. Ugly Number Easy Source
279. Perfect Squares Medium Source
283. Move Zeroes Easy Source
287. Find the Duplicate Number Medium Source
295. Find Median from Data Stream Hard Source
300. Longest Increasing Subsequence Medium Source
301. Remove Invalid Parentheses Hard Source
309. Best Time to Buy and Sell Stock with Cooldown Medium Source
322. Coin Change Medium Source
338. Counting Bits Easy Source
345. Reverse Vowels of a String Easy Source
347. Top K Frequent Elements Medium Source
374. Guess Number Higher or Lower Easy Source
389. Find the Difference Easy Source
394. Decode String Medium Source
424. Longest Repeating Character Replacement Medium Source
433. Minimum Genetic Mutation Medium Source
438. Find All Anagrams in a String Medium Source
461. Hamming Distance Easy Source
480. Sliding Window Median Hard Source
523. Continuous Subarray Sum Medium Source
543. Diameter of Binary Tree Easy Source
547. Number of Provinces Medium Source
587. Erect the Fence Hard Source
623. Add One Row to Tree Medium Source
645. Set Mismatch Easy Source
692. Top K Frequent Words Medium Source
704. Binary Search Easy Source
714. Best Time to Buy and Sell Stock with Transaction Fee Medium Source
763. Partition Labels Medium Source
766. Toeplitz Matrix Easy Source
835. Image Overlap Medium Source
899. Orderly Queue Hard Source
901. Online Stock Span Medium Source
907. Sum of Subarray Minimums Medium Source
947. Most Stones Removed with Same Row or Column Medium Source
997. Find the Town Judge Easy Source
1043. Partition Array for Maximum Sum Medium Source
1047. Remove All Adjacent Duplicates In String Easy Source
1092. Shortest Common Supersequence Hard Source
1143. Longest Common Subsequence Medium Source
1207. Unique Number of Occurrences Easy Source
1239. Maximum Length of a Concatenated String with Unique Characters Medium Source
1293. Shortest Path in a Grid with Obstacles Elimination Hard Source
1323. Maximum 69 Number Easy Source
1328. Break a Palindrome Medium Source
1531. String Compression II Hard Source
1544. Make The String Great Easy Source
1662. Check If Two String Arrays are Equivalent Easy Source
1706. Where Will the Ball Fall Medium Source
1832. Check if the Sentence Is Pangram Easy Source
1926. Nearest Exit from Entrance in Maze Medium Source
2095. Delete the Middle Node of a Linked List Medium Source
2131. Longest Palindrome by Concatenating Two Letter Words Medium Source
2136. Earliest Possible Day of Full Bloom Hard Source

About

Solving LeetCode problems in Kotlin

Topics

Resources

Stars

Watchers

Forks

Languages