trees using stl

hi all…i have learned about tree DS and im comfortable in writing code using structures for tree traversals (almost all tree basic problems )…but its taking a lot of time …so i need to know how to implement trees using STL for all basic operations on them…i have googled about dis but could not find any source !! It’s going to help a lot if any of u post some real codes implementing tree traversals (so, i can figure out how to implement trees using STL by myself )…!!
so,pls help me out !!
Thanks in advance :slight_smile:

1 Like

Refer this link for implementation:

Also try reading this:

As far as speed of implementation is concerned, you’ll only get better if you keep at it !

i have already visited geeks for geeks portal …but none of them are implemented using STL !! if you have done any tree problem using STL post it here wid question …dat would be very helpful !!
Thanks in advance :slight_smile:

In that case this should work :

1 Like

wow…nice article tqq @godslayer12

1 Like

if anyone finds new articles on dis or some new codes…post it here !!
Thanks in advance :slight_smile:

//