2707. Extra Characters in a String
You are given a 0-indexed string s and a dictionary of words dictionary. You have to break s into one or more non-overlapping substrings such that each substring is […]
You are given a 0-indexed string s and a dictionary of words dictionary. You have to break s into one or more non-overlapping substrings such that each substring is […]
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 string s. You can convert s to a palindrome by adding characters in front of it. Return the shortest palindrome
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 list of non-negative integers nums, arrange them such that they form the largest number and return it. Since the
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 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 the string s, return the size of the longest substring containing each vowel an even number of times. That is,
You are given an integer array nums of size n. Consider a non-empty subarray from nums that has the maximum possible bitwise AND. In other words, let k be the maximum value
You are given an array arr of positive integers. You are also given the array queries where queries[i] = [lefti, righti]. For each query i compute the XOR of
You are given a string allowed consisting of distinct characters and an array of strings words. A string is consistent if all characters in the string appear
A bit flip of a number x is choosing a bit in the binary representation of x and flipping it from either 0 to 1 or 1 to 0. For example, for x = 7, the