leetcode
My solutions
of tasks from
LeetCode
Link to repository
Concurrency
Design
Premium
1. Two Sum
2. Add Two Numbers
3. Longest Substring Without Repeating Characters
5. Longest Palindromic Substring
7. Reverse Integer
8. String to Integer (atoi)
9. Palindrome Number
11. Container With Most Water
12. Integer to Roman
13. Roman to Integer
14. Longest Common Prefix
15. 3Sum
16. 3Sum Closest
18. 4Sum
19. Remove Nth Node From End of List
20. Valid Parentheses
21. Merge Two Sorted Lists
22. Generate Parentheses
23. Merge k Sorted Lists
24. Swap Nodes in Pairs
25. Reverse Nodes in k-Group
26. Remove Duplicates from Sorted Array
27. Remove Element
28. Find the Index of the First Occurrence in a String
31. Next Permutation
33. Search in Rotated Sorted Array
34. Find First and Last Position of Element in Sorted Array
35. Search Insert Position
48. Rotate Image
49. Group Anagrams
53. Maximum Subarray
56. Merge Intervals
61. Rotate List
66. Plus One
69. Sqrt(x)
70. Climbing Stairs
71. Simplify Path
74. Search a 2D Matrix
75. Sort Colors
76. Minimum Window Substring
88. Merge Sorted Array
98. Validate Binary Search Tree
100. Same Tree
101. Symmetric Tree
103. Binary Tree Zigzag Level Order Traversal
104. Maximum Depth of Binary Tree
108. Convert Sorted Array to Binary Search Tree
110. Balanced Binary Tree
113. Path Sum II
121. Best Time to Buy and Sell Stock
122. Best Time to Buy and Sell Stock II
125. Valid Palindrome
136. Single Number
141. Linked List Cycle
150. Evaluate Reverse Polish Notation
153. Find Minimum in Rotated Sorted Array
154. Find Minimum in Rotated Sorted Array II
162. Find Peak Element
167. Two Sum II - Input Array Is Sorted
169. Majority Element
199. Binary Tree Right Side View
200. Number of Islands
205. Isomorphic Strings
206. Reverse Linked List
209. Minimum Size Subarray Sum
215. Kth Largest Element in an Array
217. Contains Duplicate
222. Count Complete Tree Nodes
228. Summary Ranges
234. Palindrome Linked List
235. Lowest Common Ancestor of a Binary Search Tree
238. Product of Array Except Self
242. Valid Anagram
268. Missing Number
278. First Bad Version
279. Perfect Squares
283. Move Zeroes
300. Longest Increasing Subsequence
309. Best Time to Buy and Sell Stock with Cooldown
347. Top K Frequent Elements
349. Intersection of Two Arrays
350. Intersection of Two Arrays II
367. Valid Perfect Square
374. Guess Number Higher or Lower
387. First Unique Character in a String
392. Is Subsequence
395. Longest Substring with At Least K Repeating Characters
404. Sum of Left Leaves
419. Battleships in a Board
424. Longest Repeating Character Replacement
438. Find All Anagrams in a String
443. String Compression
463. Island Perimeter
485. Max Consecutive Ones
557. Reverse Words in a String III
560. Subarray Sum Equals K
567. Permutation in String
581. Shortest Unsorted Continuous Subarray
605. Can Place Flowers
649. Dota2 Senate
652. Find Duplicate Subtrees
657. Robot Return to Origin
658. Find K Closest Elements
680. Valid Palindrome II
692. Top K Frequent Words
704. Binary Search
714. Best Time to Buy and Sell Stock with Transaction Fee
739. Daily Temperatures
744. Find Smallest Letter Greater Than Target
841. Keys and Rooms
844. Backspace String Compare
849. Maximize Distance to Closest Person
852. Peak Index in a Mountain Array
896. Monotonic Array
977. Squares of a Sorted Array
986. Interval List Intersections
1004. Max Consecutive Ones III
1329. Sort the Matrix Diagonally
1346. Check If N and Its Double Exist
1431. Kids With the Greatest Number of Candies
1436. Destination City
1466. Reorder Routes to Make All Paths Lead to the City Zero
1493. Longest Subarray of 1’s After Deleting One Element
1572. Matrix Diagonal Sum
1605. Find Valid Matrix Given Row and Column Sums
1901. Find a Peak Element II
1909. Remove One Element to Make the Array Strictly Increasing
2215. Find the Difference of Two Arrays
2511. Maximum Enemy Forts That Can Be Captured
2657. Find the Prefix Common Array of Two Arrays
2906. Construct Product Matrix
2951. Find the Peaks