3462 Vowels Game In A String
Vowels Game in a String Alice and Bob are playing a game on a string. You are given a string s, Alice and Bob will take turns playing the following game where Alice starts first: On Alice's tur...
Vowels Game in a String Alice and Bob are playing a game on a string. You are given a string s, Alice and Bob will take turns playing the following game where Alice starts first: On Alice's tur...
Sort Vowels in a String Given a 0-indexed string s, permute s to get a new string t such that: All consonants remain in their original places. More formally, if there is an index i with 0 <= ...
Minimum Number of People to Teach On a social network consisting of m users and some friendships between users, two users can communicate with each other if they know a common language. You are ...
Number of People Aware of a Secret On day 1, one person discovers a secret. You are given an integer delay, which means that each person will share the secret with a new person every day, starti...
Convert Integer to the Sum of Two No-Zero Integers No-Zero integer is a positive integer that does not contain any 0 in its decimal representation. Given an integer n, return a list of two integ...
Find N Unique Integers Sum up to Zero Given an integer n, return any array containing n unique integers such that they add up to 0. Example 1: **Input:** n = 5 **Output:** [-7,-1,1,3,4] **E...
Minimum Operations to Make Array Elements Zero You are given a 2D array queries, where queries[i] is of the form [l, r]. Each queries[i] defines an array of integers nums consisting of elements r...
Minimum Operations to Make the Integer Zero You are given two integers num1 and num2. In one operation, you can choose integer i in the range [0, 60] and subtract 2i + num2 from num1. Return th...
Find Closest Person You are given three integers x, y, and z, representing the positions of three people on a number line: x is the position of Person 1. y is the position of Person 2. z is the ...
Find the Number of Ways to Place People II You are given a 2D array points of size n x 2 representing integer coordinates of some points on a 2D-plane, where points[i] = [xi, yi]. We define the ...