DISTNUM2 - Editorial

Wow, you got AC with O(N*N/64) :o

1 Like

The editorial also includes an approach using persistent segment trees. (“functional data structures”)

2 Likes

Using “at least” in this case is equivalent, but has the added benefit that if the statement is true for V, then the statement is true for V’ > V.

Okay, thank you.

How do I go from where I currently am(4-6 questions in Long Challenges) to solving questions like these?