Saloni6111 / DSA_Problems-Hacktoberfest-2024

Solve given DSA problems here for hactoberfest.
MIT License
17 stars 65 forks source link

Morris Preorder Traversal of a Binary Tree #187

Open naresh04122005 opened 12 hours ago

naresh04122005 commented 12 hours ago

Problem Statement: Given a Binary Tree, implement Morris Preorder Traversal and return the array containing its preorder sequence.

Morris Preorder Traversal is a tree traversal algorithm aiming to achieve a space complexity of O(1) without recursion or an external data structure. The algorithm should efficiently visit each node in the binary tree in preorder sequence, printing or processing the node values as it traverses, without using a stack or recursion.

naresh04122005 commented 12 hours ago

please assign this issue to me

Utkarsh-Aggarwal commented 4 hours ago

i am 2nd year student paving my way to open source .please assign it to me

Saloni6111 commented 4 hours ago

please assign this issue to me

@naresh04122005 assigned!