Can we represent a tree with an array? - Inside code

preview_player
Показать описание
NB: This video is ad-free, you can choose to support Inside code by purchasing one of the courses above or dropping a super thanks!
NB2: Discounts of courses above are permanent

Рекомендации по теме
Комментарии
Автор

Awesome explanations, keep up the good job, dude !

sampathsubasinghe
Автор

But this is going to work only for a binary tree, right. Or we might need another way of calculating the nod relationships.

TadesseDev
Автор

One way to do is
tree = [ root, [ [ node, [ ], [ node, [ ] ] ] ]

ngneerin
Автор

I have a lot of questions. Is this a language? What is this? What does it mean?

Also, I am looking for content to understand core programming better. Not necessarily involving a language

nuelfc
welcome to shbcf.ru