2379. Minimum Recolors to Get K Consecutive Black Blocks
2379. Minimum Recolors to Get K Consecutive Black Blocks
Description
You are given a 0-indexed string blocks
of length n
, where blocks[i]
is either 'W'
or 'B'
, representing the color of the i^th
block. The characters 'W'
and 'B'
denote the colors white and black, respectively.
2090. K Radius Subarray Averages
2090. K Radius Subarray Averages
Description
You are given a 0-indexed array nums
of n
integers, and an integer k
.
1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
Description
Given an array of integers arr
and two integers k
and threshold
, return the number of sub-arrays of size k
and average greater than or equal to threshold
.
643. Maximum Average Subarray I
643. Maximum Average Subarray I
Description
You are given an integer array nums
consisting of n
elements, and an integer k
.
1456. Maximum Number of Vowels in a Substring of Given Length
1456. Maximum Number of Vowels in a Substring of Given Length
Description
Given a string s
and an integer k
, return the maximum number of vowel letters in any substring of s
with length k
.
1593. Split a String Into the Max Number of Unique Substrings
1593. Split a String Into the Max Number of Unique Substrings
Description
Given a strings
, return the maximum number of unique substrings that the given string can be split into.
3321. Find X-Sum of All K-Long Subarrays II
3321. Find X-Sum of All K-Long Subarrays II
Description
You are given an array nums
of n
integers and two integers k
and x
.
3013. Divide an Array Into Subarrays With Minimum Cost II
3013. Divide an Array Into Subarrays With Minimum Cost II
Description
You are given a 0-indexed array of integers nums
of length n
, and two positive integers k
and dist
.
3320. Count The Number of Winning Sequences
3320. Count The Number of Winning Sequences
Description
Alice and Bob are playing a fantasy battle game consisting of n
rounds where they summon one of three magical creatures each round: a Fire Dragon, a Water Serpent, or an Earth Golem. In each round, players simultaneously summon their creature and are awarded points as follows: