• + 1 comment

    Learn a bit about Heavy/Light decomposition and see if that helps...? I found this to be a good resource: https://blog.anudeep2011.com/heavy-light-decomposition/ That being said, I am only getting past the first three tests with my attempt.