Help start learning trees for competitive programming

I know trees data structure theory and its implementation in c but unable to solve competitive programming question.
I don’t know hot to implement the tree data structure in c++ using 2d vectors.

Did you learn the linked list implementation?

Start with leetcode easy, it slowly builds up from basic to good level problems.


You need to learn Adjacency Matrix and Adjacency List representation of Trees and graphs.

Thank you

1 Like