How to solve this problem using DSU?

Правка en1, от zzzzsust19, 2022-12-13 04:19:13

I solved this problem, Odd-Even Subsequence using binary search. But I also saw the tag DSU. I went for the tutorial but there is only the binary search approach. I am having a hard time connecting this problem to DSU. Can anybody explain how to solve this using DSU

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский zzzzsust19 2022-12-13 04:19:13 351 Initial revision (published)