Need a solution using bitmasking.

Правка en1, от PyAgni, 2020-04-02 05:06:38

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.

Теги bitmasking, kmjp, help

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский PyAgni 2020-04-02 05:06:38 526 Initial revision (published)