Ссылки и html тэги не поддерживаются


Комментарии:

@gantayat
@gantayat - 11.10.2020 17:45

return (1 << int(log2(l ^ r) + 1)) - 1; use this and explain how its working!

Ответить
@yogeshverma3580
@yogeshverma3580 - 15.05.2020 06:35

Bad Explanation Brother.............

Ответить
@amangarg6841
@amangarg6841 - 25.05.2019 09:16

correct answer but incorrect logic

Ответить
@MANISH220693
@MANISH220693 - 12.08.2017 06:51

What if my L=10 and R=12 ? The answer should be 6 in that case, isn't it ? Your code still gives 7. Is that correct ?

Ответить
@kaushiklele1918
@kaushiklele1918 - 15.03.2017 20:12

Need to shift your window to right ... when you give example of numbers 10 to 15 For all the number, first bit is not visible in the screen. And as this problem is specific to bits/1's/0's this is making difficult to follow

Ответить