How about this ? 1) Set first 15 1's 2) Flip 14th and 16th 2) Flip 15th and 17th...and so on The no. of flips would be: 15 in step 1 + two flips each for the remaining (32767-15) cells
15 + 2(32767-15)
How about this ? 1) Set first 15 1's 2) Flip 14th and 16th 2) Flip 15th and 17th...and so on The no. of flips would be: 15 in step 1 + two flips each for the remaining (32767-15) cells
15 + 2(32767-15)