Statement
We are given a nums
and an integer k
. Our task is to find the minimum number of k
consecutive bits at a time. So, for a binary array k
= k
flip to turn the entire array into all
If nums
cannot be converted to an array with all k
, return
Constraints:
nums.length
k
nums.length