214. Shortest Palindrome
You are given a string s. You can convert s to a palindrome by adding characters in front of it. Return the shortest palindrome […]
You are given a string s. You can convert s to a palindrome by adding characters in front of it. Return the shortest palindrome […]
Given an array height representing the heights of buildings. You have to count the buildings that will see the sunrise (Assume the
Given a string expression of numbers and operators, return all possible results from computing all the different possible ways to group numbers and
Given a String str, reverse the string without reversing its individual words. Words are separated by dots. Note: The last character
Given a list of non-negative integers nums, arrange them such that they form the largest number and return it. Since the
Given an expression string x. Examine whether the pairs and the orders of {,},(,),[,] are correct in exp.For example, the function
A sentence is a string of single-space separated words where each word consists only of lowercase letters. A word is uncommon if it appears
Given an array arr[] denoting heights of N towers and a positive integer K. For each tower, you must perform exactly one of the following operations exactly once. Increase the height
Given a list of 24-hour clock time points in “HH:MM” format, return the minimum minutes difference between any two time-points in the list. Example 1:
Given a string str consisting of opening and closing parenthesis ‘(‘ and ‘)‘. Find length of the longest valid parenthesis substring. A
Given the string s, return the size of the longest substring containing each vowel an even number of times. That is,
Given a Binary Tree (BT), convert it to a Doubly Linked List (DLL) in place. The left and right pointers