3Sum
Given an array of integers, find all unique triplets that sum to zero.
Given an array of integers, find all unique triplets that sum to zero.
Find all unique quadruplets in a given array of integers that sum up to a specific target value.
Given an array of stock prices for consecutive days, find the maximum profit that can be achieved by buying on one day and selling on a…
Given a sorted array of integers, find the index of a given target value.
Find the minimum number of coins to make a target amount, or return -1 if impossible
Given an array of integers, determine if any number appears more than once.
Given an array of strings representing an arithmetic expression in Reverse Polish Notation (RPN), evaluate the expression and return the…
Given a sorted list of non-overlapping intervals and a new interval, insert the new interval into the list while maintaining the sorted…
Given a list of 2D points and an integer k, find the k points that are closest to the origin (0,0).
Given a string of digits from 2-9, generate all possible letter combinations that the digits can represent, based on a standard phone…
Given an array of strings, find the longest common prefix among them.
Given a string composed of lowercase and uppercase English letters, determine the length of the longest possible palindrome that can be…
Given an array of integers, find the element that appears more than half the time.
Given an array of integers, find the contiguous subarray with the largest sum and return its sum.
Given two sorted arrays, find the median of the combined sorted array.
Merge overlapping intervals in a list and return the non-overlapping intervals that cover all inputs
Find all possible arrangements of distinct integers in an array.
Compute the product of all elements in an array except for the element at the current index, without using division.
Find a target value in a sorted array that has been rotated at an unknown pivot point.
Given an array of integers and a target integer, find the indices of two numbers that add up to the target.
Given a string and a number of rows, arrange the string in a zigzag pattern and then read it line by line to produce a new string.