I don’t understand the failing TC here. If k is one more than the minimum operations dstnct/2 then we can just swap the 1s or 0s with different indices.
Problem code: CONVERT. Title: Binary Conversion.
I don’t understand the failing TC here. If k is one more than the minimum operations dstnct/2 then we can just swap the 1s or 0s with different indices.
Problem code: CONVERT. Title: Binary Conversion.