440. K-th Smallest in Lexicographical Order
Given two integers n and k, return the kth lexicographically smallest integer in the range [1, n]. Example 1: Input: n = 13, k = 2 Output: […]
Given two integers n and k, return the kth lexicographically smallest integer in the range [1, n]. Example 1: Input: n = 13, k = 2 Output: […]
Given a string of characters, find the length of the longest proper prefix which is also a proper suffix. NOTE: Prefix
Given an integer n, return all the numbers in the range [1, n] sorted in lexicographical order. You must write an algorithm that
You are given a special linked list where each node has a next pointer pointing to its next node. You
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