2999. Count the Number of Powerful Integers
2999. Count the Number of Powerful Integers
Description
You are given three integers start
, finish
, and limit
. You are also given a 0-indexed string s
representing a positive integer.
2999. Count the Number of Powerful Integers
You are given three integers start
, finish
, and limit
. You are also given a 0-indexed string s
representing a positive integer.
600. Non-negative Integers without Consecutive Ones
Given a positive integer n
, return the number of the integers in the range [0, n]
whose binary representations do not contain consecutive ones.
902. Numbers At Most N Given Digit Set
Given an array of digits
which is sorted in non-decreasing order. You can write numbers using each digits[i]
as many times as we want. For example, if digits = ['1','3','5']
, we may write numbers such as '13'
, '551'
, and '1351315'
.
2213. Longest Substring of One Repeating Character
You are given a 0-indexed string s
. You are also given a 0-indexed string queryCharacters
of length k
and a 0-indexed array of integer indices queryIndices
of length k
, both of which are used to describe k
queries.
307. Range Sum Query - Mutable
Given an integer array nums
, handle multiple queries of the following types:
3347. Maximum Frequency of an Element After Performing Operations II
You are given an integer array nums
and two integers k
and numOperations
.
3346. Maximum Frequency of an Element After Performing Operations I
You are given an integer array nums
and two integers k
and numOperations
.
3343. Count Number of Balanced Permutations
You are given a string num
. A string of digits is called balanced if the sum of the digits at even indices is equal to the sum of the digits at odd indices.