Can't understand the first test case
3 2
11110001 11110001 11110000
11110000 11110000
If you alter one bit, it will become
11110000 11110000 11110001
So how the answer is 1 2? Shouldn't it be 1 1? Or we have to alter only the first byte?
Re: Can't understand the first test case
Posted by
espr1t 26 Oct 2013 17:29
What you suggest changes 2 bits and you want the replacement with minimal number of bits ("And if it is, find the minimum number of bits to alter.").
Edited by author 26.10.2013 17:33
Edited by author 26.10.2013 17:36
Re: Can't understand the first test case
Posted by
IPRIT 2 Aug 2014 17:59
Use the FFTW.