Two Sum
Find two numbers that add up to a specific target.
Valid Anagram
Determine if two strings are anagrams of each other.
Group Anagrams
Group a list of strings into anagrams.
Top K Frequent Elements
Find the k most frequent elements in an array.
Product of Array Except Self
Calculate the product of an array except self.
Valid Sudoku
Determine if a Sudoku is valid.
Encode and Decode Strings
Encode and decode strings for transmission.
Longest Consecutive Sequence
Find the length of the longest consecutive elements sequence.
Valid Palindrome
Check if a string is a palindrome.
Three Sum
Find all unique triplets in an array that sum to zero.
Container With Most Water
Find the maximum area of water that can be contained.
Trapping Rain Water
Calculate how much water can be trapped after raining.
Best Time to Buy and Sell Stock
Find the best time to buy and sell stock for maximum profit.
Longest Substring Without Repeating Characters
Find the length of the longest substring without repeating characters.
Longest Repeating Character Replacement
Find the length of the longest substring after replacement.
Minimum Window Substring
Find the minimum window substring containing all characters.
Sliding Window Maximum
Find the maximum value in each sliding window.
Valid Parentheses
Check if parentheses are valid.
Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element.
Evaluate Reverse Polish Notation
Evaluate an expression in Reverse Polish Notation.
Generate Parentheses
Generate all combinations of well-formed parentheses.
Daily Temperatures
Find how many days until a warmer temperature.
Car Fleet
Calculate the number of car fleets that will arrive at the destination.
Largest Rectangle in Histogram
Find the area of the largest rectangle in a histogram.