LeetCode OJ is a platform for preparing technical coding interviews. Pick from an expanding library of more than
190 questions, code and submit your solution to see if you have solved it
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input w
There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requirements:Each child must have at least one candy....
Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of people in front of t...
Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'.'.' Matches any single character.
'*' Matches zero or more of the preceding element.
1 Two Sum
2 Median of Two Sorted Arrays
Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For example, given s ="aab",Return [