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?