731. My Calendar II
You are implementing a program to use as your calendar. We can add a new event if adding the event […]
You are implementing a program to use as your calendar. We can add a new event if adding the event […]
You are implementing a program to use as your calendar. We can add a new event if adding the event
You are given an array words of size n consisting of non-empty strings. We define the score of a string word as the number of strings words[i] such that word is a prefix of words[i]. For example, if words =
You are given two arrays with positive integers arr1 and arr2. A prefix of a positive integer is an integer formed by one or more of its
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,