you give binary array nums integer kA kbit flip choose subarray length k num simultaneously change 0 subarray 1 1 subarray 0return minimum number kbit flips require 0 array if possible return 1A subarray contiguous array Example 1input num 010 k 1output 2Explanation Flip nums0 flip nums2Example 2input num 110 k 2output 1explanation no matter flip subarray size 2 array 111example 3input num 00010110 k 3output 3explanation Flip nums0nums1nums2 num 11110110Flip nums4nums5nums6 nums 11111000Flip nums5nums6nums7 num 11111111 Constraints1 numslength 1051 k numslength