| 1. Two Sum |
two_sum.py |
Easy |
|
| 2. Add Two Numbers |
AddTwoNumbers.kt AddTwoNumbers2.kt |
Medium |
Version 2 was a failed attempt. Runtime: 252 ms, faster than 89.36% of Kotlin online submissions for Add Two Numbers. |
| 3. Longest Substring Without Repeating Characters |
LongestSubstringWithoutRepeatingCharacters.kt |
Medium |
Runtime: 384 ms, faster than 27.11% of Kotlin online submissions for Longest Substring Without Repeating Characters... :( |
| 4. Median of Two Sorted Arrays |
median_of_two_sorted_arrays.c |
Hard |
The problem requested O(log(m+n)) but this solution is O(m+n) |
| 5. Longest Palindromic Substring |
LongestPalindromicSubstring.kt LongestPalindromicSubstring.java |
Medium |
|
| 7. Reverse Integer |
ReverseInteger.kt |
Easy |
|
| 11. Container With Most Water |
ContainerWithMostWater.java |
Medium |
Runtime: 4 ms, faster than 99.26% |
| 15. 3Sum |
3Sum.kt |
Medium |
|
| 22. Generate Parentheses |
GenerateParentesis.kt |
Medium |
|
| 46. Permutations |
permutations.c |
Medium |
|
| 49. Group Anagrams |
GroupAnagrams.java |
Medium |
|
| 65. Valid Number |
ValidNumber.java |
Hard |
|
| 73. Set Matrix Zeroes |
SetMatrixZeroes.java |
Medium |
|
| 104. Maximum Depth of Binary Tree |
MaximumDepthOfBinaryTree.cpp |
Easy |
|
| 124. Binary Tree Maximum Path Sum |
max_path_sum.c |
Hard |
Solution by shichaotan |
| 136. Single Number |
single_number.cpp |
Easy |
|
| 146. LRU Cache |
lru_cache.c |
Hard |
Hash table with linked elements, organized through pointer manipulation |
| 155. Min Stack |
min_stack.c |
Easy |
|
| 160. Intersection of Two Linked Lists |
IntersectionOfTwoLinkedLists.java |
Easy |
|
| 297. Serialize and Deserialize Binary Tree |
SerializeAndDeserializeBinaryTree.java |
Hard |
|
| 328. Odd Even Linked List |
OddEvenLinkedList.kt |
Medium |
|
| 338. Counting Bits |
counting_bits.cpp |
Medium |
|
| 380. Insert Delete GetRandom O(1) |
InsertDeleteGetRandomO1.java |
Medium |
|
| 406. Queue Reconstruction by Height |
|
Medium |
Solution |
| 461. Hamming Distance |
hamming_distance.py |
Easy |
|
| 581. Shortest Unsorted Continuous Subarray |
shortest_unsorted_continuos_subarray.c |
Easy |
Inspired by compton_scatter solution |
| 617. Merge Two Binary Trees |
MergeTwoBinaryTrees.kt |
Easy |
|