Skip to content

grinka/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

161 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode.com

Problems and solutions for LeetCode problems. Solutions implemented using Javascript and C#.

Problem Level Runtime Beats
1. Two Sum Easy 4ms 53.48%
2. Add Two Numbers Medium 112ms, 20ms, 108ms ~5%
3. Longest Substring Without Repeating Characters Medium 79ms, 115ms ~13%
4. Median of Two Sorted Arrays Hard 87ms 5%
5. Longest Palindromic Substring Medium 72ms 26%
6. Zigzag Conversion Medium 86ms 10.97%
7. Reverse Integer Medium 40ms 6.51%
8. String to Integer (atoi) Medium 4ms 16.82%
9. Palindrome Number Easy
11. Container With Most Water Medium
12. Integer to Roman Medium
13 Roman to Integer Easy
14. Longest Common Prefix Easy
15. 3Sum Medium
16. 3Sum Closest Medium
17. Letter Combinations of a Phone Number Medium
18. 4Sum Medium
19. Remove Nth Node From Ed of List Medium
20. Valid Parentheses Easy
21. Merge Two Sorted Lists Easy
22. Generate Parentheses Medium
23. Merge k Sorted Lists Hard
24. Swap Nodes in Pairs Medium
26. Remove Duplicates from Sorted Array Easy
27. Remove Element Easy
28. Find the Index of the First Occurence in a String Easy
29. Divide Two Integer Medium
31. Next Permutation Medium
33. Search in Rotated Sorted Array Medium
34. Find First and Last Position of Element in Sorted Array Medium
35. Search Insert Position Easy
36. Valid Sudoku Medium
38. Count and Say Medium
39. Combination Sum Medium
43. Mutiply Strings Medium
45. Jump Game II Medium
46. Permutations Medium
49. Group Anagram Medium
53. Maximum Subarray Medium
54. Spiral Matrix Medium
55. Jump Game Medium
57. Insert Interval Medium
58. Length of Last Word Easy
59. Spiral Matrix II Medium
62. Unique Paths Medium
63. Unique Paths II Medium
64. Minimum Path Sum Medium
66. Plus One Easy
67. Add Binary Easy
70. Climbing Stairs Easy
71. Simplify Path Medium
73. Set Matrix Zeroes Medium
74. Search a 2D Matrix Medium
75. Sort Colors Medium
78. Subsets Medium
86. Partition List Medium
88. Merge Sorted Array Easy
91. Decode Ways Medium
92. Reverse Linked List II Medium
93. Restore IP Addresses Medium
94. Binary Tree Inorder Traversal Easy
95. Unique Binary Search Trees II Medium
100. Same Tree Easy
101. Symmetric Tree Easy
102. Binary Tree Level Order Traversal Medium
103. Binary Tree Zigzag Level Order Traversal Medium
104. Maximum Depth of Binary Tree Easy
108. Convert Sorted Array to Binary Search Tree Easy
109. Convert Sorted List to Binary Search Tree Medium
111. Minimum Depth of Binary Tree Easy
116. Populating Next Right Pointers in Each Node Medium
118. Pascal's Triangle Easy
119. Pascal's Triangle II Easy
120. Triangle Medium
121. Best Time to Buy and Sell Stock Easy
122. Best Time to Buy and Sell Stock II Medium
124. Binary Tree Maximum Path Sum Hard
125. Valid Palindrome Easy
129. Sum Root to Leaf Numbers Medium
131. Palindrome Partitioning Medium
133. Clone Graph Medium
135. Candy Hard
136. Single Number Easy
138. Copy List with Random Pointer Medium
141. Linked List Cycle Easy
142. Linked List Cycle II Medium
143. Reorder List Medium
144. Binary Tree Preorder Traversal Easy
474. Ones and Zeroes Medium
717. 1-bit and 2-bit Characters Easy
757. Set Intersection Size At Least Two Hard
961. N-Repeated Element in Size 2N Array Easy 0ms 100%
1015. Smallest Integer Divisible by K Medium
1018. Binary Prefix Divisibly By 5 Medium
1262. Greatest Sum Divisible by Three Medium
1351. Count Negative Numbers in a Sorted Matrix Easy 0ms 100%
1437. Check If All 1's Are at Least Length K Places Away Easy
1526. Minimum Number of Increments on Subarrays to Form a Target Array Hard
1925. Count Square Sum Triples Easy
1930. Unique Length-3 Palindromi Subsequences Medium
2011. Final Value of Variable After Performing Operations Easy
2110. Number of Smooth Descent Periods of a Stock Medium
2125. Number of Laser Beams in a Bank Medium
2154. Keep Multiplying Found Values by Two Easy
3190. Find Minimum Operations to Make All Elements Divisible by Three Easy
3370. Smallest Number With All Set Bits Easy
3397. Maximum Number of Distinct Elements After Operations Medium
3432. Count Partitions with Even Sum Difference Easy
3433. Count Mentions Per User Medium
3461. Check If Digits Are Equal in String After Operations I Easy
3583. Count Special Triplets Medium
3606. Coupon Code Validator Easy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors