DEV Community

Mujahida Joynab
Mujahida Joynab

Posted on

Why we need to learn Tree Data Structure

It is not linear data structure . Example - The parent 10 have child 20 and 30 . What data structure to use for this? Can we do it by linked list or array ?
There is root node -> There is no parent of it . Leaf node -> There is no child of it.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay