Confusing output in Hacking attempt..

Revision en1, by aasourav, 2020-10-28 07:11:58

Hello i am confused about This Problem's output. if we input as a string 111000 output says minimum number of operation is 2 . but here i can see if we swap between index 2 and index 5 . the string will be 101010 . and minimum number of operation will be 1 . ,, did i mistake something?? please help me to understand the author's logic.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English aasourav 2020-10-28 07:11:58 427 Initial revision (published)