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

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

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
  • Проголосовать: не нравится

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

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