Kitty's Calculations on a Tree

  • + 0 comments

    WTF i can do each query in O(n) time but i get time out on 3 questions, and stack overflow on 2 questions because the tree is too deep

    this question is fuking RIDICULOUS