Two Sum
Find two numbers in an array that add up to the given target.
Practice DSA, algorithms, data structures and interview questions in Python, C, C++, Java, JavaScript, TypeScript and SQL.
Find two numbers in an array that add up to the given target.
Determine whether brackets in a string are correctly balanced.
Check whether a string is a palindrome after normalization.
Search for a target value inside a sorted array.
Find the maximum profit possible from buying and selling a stock.
Find the contiguous subarray with the largest sum.
Merge two sorted linked lists into one sorted list.
Reverse a singly linked list.
Count the number of distinct ways to climb a staircase.
Find the element that appears more than half the time.
Find the length of the longest substring without duplicate characters.
Find two lines that form a container holding the maximum amount of water.
Find all unique triplets whose values sum to zero.
Merge all overlapping intervals.
Determine whether all courses can be completed given prerequisites.
Count the number of islands in a grid.
Return the level-order traversal of a binary tree.
Find the lowest common ancestor of two nodes in a binary tree.
Determine whether a string can be segmented into dictionary words.
Find the minimum number of coins required to make a given amount.
Calculate how much rain water can be trapped between elevation bars.
Merge multiple sorted linked lists into one sorted linked list.
Find the minimum operations required to transform one string into another.
Design a cache supporting constant-time get and put operations.
Implement a trie supporting insert, search and prefix operations.
Find the kth largest element in an unsorted array.
Calculate the nth Fibonacci number efficiently.
Reverse an array of characters in place.
Determine whether an array contains duplicate values.
Group strings that are anagrams of each other.