G
G
Grigory Dikiy2015-05-21 11:16:49
Data Structures
Grigory Dikiy, 2015-05-21 11:16:49

Storing trees as adjacency lists?

How can a tree be stored as an adjacency list?
I'm going to create an array of pointers to two-element arrays that store the indexes of the left and right subtrees!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question