PyAgni's blog

By PyAgni, history, 4 years ago, In English

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.

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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