Continuing the discussion from KBALANCE - Editorial:
this is link to my code:- Solution: 51456809 | CodeChef
Consider the test case:
Correct output: 1
Output by your solution: 2
Its optimal to flip the ‘0’ at index 6 (1 based indexing) to get 2-Balanced string.
thanks man for ur time!!
i figured it out
even now getting wa