Closed Saipradyumnagoud closed 3 months ago
@Ajay-Dhangar Please assign me the issue
Hi @Saipradyumnagoud! Thanks for opening this issue. We appreciate your contribution to this open-source project. Your input is valuable and we aim to respond or assign your issue as soon as possible. Thanks again!
Hello @Saipradyumnagoud! Your issue #2041 has been closed. Thank you for your contribution!
Is there an existing issue for this?
Feature Description
You are given a binary array nums and an integer k.
A k-bit flip is choosing a subarray of length k from nums and simultaneously changing every 0 in the subarray to 1, and every 1 in the subarray to 0.
Return the minimum number of k-bit flips required so that there is no 0 in the array. If it is not possible, return -1.
A subarray is a contiguous part of an array.
Use Case
Input: nums = [0,1,0], k = 1 Output: 2
Benefits
No response
Add ScreenShots
No response
Priority
High
Record