Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.
Find the total area covered by two rectilinear rectangles in a 2D plane.
Given a string s, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can find by per...
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be a unique s...