JTREE- Unofficial Editorial

Give me a few mins , i will update it with an example :slight_smile:

@nidzulandz , updated :slight_smile:

@arunnsit Got it immidietly with examples! Amazing solution :smiley:

Aaah. That was harsh!

Thanks alot :slight_smile:

Awesome explanation with the images, just give a link in official editorial as different approach to the problem

precisely , yes you are right . i mixed variable M with Q . thanks for the correction :slight_smile:

p is parent of u . And discovering means if we have already visited the node or not . I meant that if we havent visited any node in the subtree of u , then u should remain in the vector and once all the subtree nodes are visited , we have to pop u .

thank you :slight_smile: