This repository stores the solutions for problems posted on Leetcode.
Profile: link
Progress:
Category | Solved |
---|---|
All | 267/2577 |
Easy | 132/630 |
Medium | 118/1372 |
Hard | 17/575 |
3. Longest Substring Without Repeating Characters
5. Longest Palindromic Substring
19. Remove Nth Node From End of List
26. Remove Duplicates from Sorted Array
28. Find the Index of the First Occurrence in a String
33. Search in Rotated Sorted Array
34. Find First and Last Position of Element in Sorted Array
83. Remove Duplicates from Sorted List
94. Binary Tree Inorder Traversal
96. Unique Binary Search Trees
98. Validate Binary Search Tree
102. Binary Tree Level Order Traversal
103. Binary Tree Zigzag Level Order Traversal
104. Maximum Depth of Binary Tree
106. Construct Binary Tree from Inorder and Postorder Traversal
109. Convert Sorted List to Binary Search Tree
111. Minimum Depth of Binary Tree
116. Populating Next Right Pointers in Each Node
121. Best Time to Buy and Sell Stock
122. Best Time to Buy and Sell Stock II
144. Binary Tree Preorder Traversal
145. Binary Tree Postorder Traversal
153. Find Minimum in Rotated Sorted Array
167. Two Sum II - Input Array Is Sorted
171. Excel Sheet Column Number
203. Remove Linked List Elements
222. Count Complete Tree Nodes
232. Implement Queue using Stacks
235. Lowest Common Ancestor of a Binary Search Tree
300. Longest Increasing Subsequence
303. Range Sum Query - Immutable
304. Range Sum Query 2D - Immutable
309. Best Time to Buy and Sell Stock with Cooldown
345. Reverse Vowels of a String
350. Intersection of Two Arrays II
352. Data Stream as Disjoint Intervals
374. Guess Number Higher or Lower
387. First Unique Character in a String
424. Longest Repeating Character Replacement
438. Find All Anagrams in a String
452. Minimum Number of Arrows to Burst Balloons
462. Minimum Moves to Equal Array Elements II
516. Longest Palindromic Subsequence
540. Single Element in a Sorted Array
557. Reverse Words in a String III
589. N-ary Tree Preorder Traversal
653. Two Sum IV - Input is a BST
693. Binary Number with Alternating Bits
700. Search in a Binary Search Tree
701. Insert into a Binary Search Tree
714. Best Time to Buy and Sell Stock with Transaction Fee
744. Find Smallest Letter Greater Than Target
783. Minimum Distance Between BST Nodes
787. Cheapest Flights Within K Stops
852. Peak Index in a Mountain Array
876. Middle of the Linked List
918. Maximum Sum Circular Subarray
926. Flip String to Monotone Increasing
944. Delete Columns to Make Sorted
953. Verifying an Alien Dictionary
958. Check Completeness of a Binary Tree
974. Subarray Sums Divisible by K
976. Largest Perimeter Triangle
977. Squares of a Sorted Array
989. Add to Array-Form of Integer
1011. Capacity To Ship Packages Within D Days
1047. Remove All Adjacent Duplicates In String
1071. Greatest Common Divisor of Strings
1129. Shortest Path with Alternating Colors
1143. Longest Common Subsequence
1162. As Far from Land as Possible
1232. Check If It Is a Straight Line
1239. Maximum Length of a Concatenated String with Unique Characters
1281. Subtract the Product and Sum of Digits of an Integer
1290. Convert Binary Number in a Linked List to Integer
1293. Shortest Path in a Grid with Obstacles Elimination
1309. Decrypt String from Alphabet to Integer Mapping
1337. The K Weakest Rows in a Matrix
1346. Check If N and Its Double Exist
1351. Count Negative Numbers in a Sorted Matrix
1356. Sort Integers by The Number of 1 Bits
1385. Find the Distance Value Between Two Arrays
1466. Reorder Routes to Make All Paths Lead to the City Zero
1491. Average Salary Excluding the Minimum and Maximum Salary
1502. Can Make Arithmetic Progression From Sequence
1523. Count Odd Numbers in an Interval Range
1539. Kth Missing Positive Number
1567. Maximum Length of Subarray With Positive Product
1588. Sum of All Odd Length Subarrays
1608. Special Array With X Elements Greater Than or Equal X
1657. Determine if Two Strings Are Close
1662. Check If Two String Arrays are Equivalent
1675. Minimize Deviation in Array
1678. Goal Parser Interpretation
1704. Determine if String Halves Are Alike
1706. Where Will the Ball Fall
1768. Merge Strings Alternately
1779. Find Nearest Point That Has the Same X or Y Coordinate
1790. Check if One String Swap Can Make Strings Equal
1822. Sign of the Product of an Array
1832. Check if the Sentence Is Pangram
1855. Maximum Distance Between a Pair of Values
2114. Maximum Number of Words Found in Sentences
2131. Longest Palindrome by Concatenating Two Letter Words
2136. Earliest Possible Day of Full Bloom
2187. Minimum Time to Complete Trips
2244. Minimum Rounds to Complete All Tasks
2316. Count Unreachable Pairs of Nodes in an Undirected Graph
2348. Number of Zero-Filled Subarrays
2359. Find Closest Node to Given Two Nodes
2444. Count Subarrays With Fixed Bounds