-
I have created a 2-D matrix based on the height of the given tree
-
The rows will be height + 1 (to accomodate the last leaves)
-
The no of Columns will be 2**(size of each number) Here I have taken as 4
-
I will loop through each row in the matrix to fill each row
- The stratergy to fill each row is of divide and conquer approach
- In each iteration I will divide each row into 2 equal halves based on the size of the row.
- The left part will be given the left node
- The right part will be given the right node
-
Notifications
You must be signed in to change notification settings - Fork 0
achyuthreddyi/loop-ai-PS
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published