CodeHarborHub / codeharborhub.github.io

Welcome to CodeHarborHub! Our mission is to provide accessible and comprehensive educational resources to learners of all levels, from beginners to advanced professionals. Whether you're looking to kickstart your career in web development, master a new programming language, or stay updated on the latest tech trends, we've got you covered.
https://codeharborhub.github.io/
MIT License
81 stars 163 forks source link

[Feature Request]: Add leetCode Problem 995 #2041

Closed Saipradyumnagoud closed 3 months ago

Saipradyumnagoud commented 3 months ago

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

Saipradyumnagoud commented 3 months ago

@Ajay-Dhangar Please assign me the issue

github-actions[bot] commented 3 months ago

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!

github-actions[bot] commented 3 months ago

Hello @Saipradyumnagoud! Your issue #2041 has been closed. Thank you for your contribution!