HRDSEQ - Editorial

Bonus problem: solve it for higher constraints e.g N<=1e9

5 Likes