My issue
How can we make all digits equal in this case:
10
1010010100
According to the solution provided this outputs “YES”, but according to me it should be “NO”
Problem Link: ADJFLIP Problem - CodeChef
How can we make all digits equal in this case:
10
1010010100
According to the solution provided this outputs “YES”, but according to me it should be “NO”
Problem Link: ADJFLIP Problem - CodeChef
@nihal09
1010010100
1st flip for i=4 1011110100
2nd flip for i= 3,5 1000000100
3rd flip for i=2,4,6 1111111100
4th flip for i=1,3,5,7 0000000000
so this will make all as 0 and hence the answer would be “Yes”.
Thanks