Блог пользователя PyAgni

Автор PyAgni, история, 6 лет назад, По-английски

B. Chloe and the sequence

I'm able to solve this problem using binary search. But some people have solved it using bitmasking alone. For example, check this solution by kmjp. Can someone please explain his solution or a similar one using bitmasking alone. Thanks.

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Check out Errichto's tutorial at: https://www.youtube.com/watch?v=xXKL9YBWgCY&t=3s