Please read the new rule regarding the restriction on the use of AI tools. ×

skp's blog

By skp, history, 6 years ago, In English

I need help on this problem.https://www.spoj.com/problems/RTREE/ Implementation of my approach is given below.I'm not able to figure out why I am getting the wrong answer. Solution Link : https://ideone.com/1yYmQq

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
6 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

You only consider paths that go through the root of a subtree, but not any of those that are in smaller subtrees of a subtree for each node.