This repository contains a curated list of LeetCode problems to practice and enhance your problem-solving skills. The problems are categorized by topic and difficulty, with direct links to the challenges on LeetCode.
- Two Sum
- Find two numbers in an array that add up to a target.
- Best Time to Buy and Sell Stock
- Maximize profit from buying and selling stock.
- Contains Duplicate
- Check if an array contains duplicate elements.
- Maximum Subarray
- Find the contiguous subarray with the maximum sum.
- Intersection of Two Arrays II
- Find common elements between two arrays.
- Reverse Linked List
- Reverse a linked list.
- Merge Two Sorted Lists
- Merge two sorted linked lists into one.
- Remove Duplicates from Sorted List
- Remove duplicates from a sorted linked list.
- Linked List Cycle
- Detect if a linked list contains a cycle.
- Valid Parentheses
- Check if the parentheses in a string are valid and properly nested.
- Implement Queue using Stacks
- Implement a queue using two stacks.
- Implement Stack using Queues
- Implement a stack using two queues.
- Min Stack
- Design a stack that supports retrieving the minimum value in constant time.
- Sort Colors
- Sort an array containing only 0, 1, and 2.
- Kth Largest Element in an Array
- Find the kth largest element in an array.
- Merge Intervals
- Merge overlapping intervals.
- Find All Numbers Disappeared in an Array
- Find missing numbers in an array of 1 to n.
- Single Number
- Find the element that appears only once in an array where others appear twice.
- Remove Duplicates from Sorted Array
- Remove duplicates from a sorted array in place.
- Search in Rotated Sorted Array
- Search for a target in a rotated sorted array.
- Find Peak Element
- Find a peak element in an array where a peak is larger than its neighbors.
- First Bad Version
- Identify the first bad version in a sequence using minimal checks.
- Choose a category and problem based on your skill level.
- Solve the problem directly on LeetCode.
- Track your progress and revisit topics where you face challenges.
Happy coding! 🚀