DS-Algo-Zone icon indicating copy to clipboard operation
DS-Algo-Zone copied to clipboard

Morris Traversal of Binary Trees O(1) Space ( Inorder , Preorder )

Open tm2k23 opened this issue 4 years ago • 4 comments

🚀 Feature

I would like to add morris traversal of binary trees which is done in O(1) space

Have you read the Contribution Guidelines?

Yes

Pitch

=> No recursion => No stacks => O(1) Space

Assignees

(Do not make changes in this section until asked to do so)
C -
C# -
C++ - @tm2k23 Go -
Java -
Javascript -
Kotlin -
Python -

tm2k23 avatar Oct 01 '21 17:10 tm2k23

@manan025 please assign C++ to me

tm2k23 avatar Oct 01 '21 17:10 tm2k23

C++ Assigned @tm2k23

manan025 avatar Oct 01 '21 18:10 manan025

@manan025 I forked the repo, in the morning itself, after that I made a PR which was merged, shall I add things in the same cloned repo which was forked in the morning, or do I need to fork again?

tm2k23 avatar Oct 01 '21 19:10 tm2k23

You can create a new branch in that repo and work in that branch. Or you may create new fork repo (any should work) I'd recommend the first one however if you are new to github/ git, you can do the 2nd one.

manan025 avatar Oct 01 '21 19:10 manan025