sukritishah15 / DS-Algo-Point

This repository contains codes for various data structures and algorithms in C, C++, Java, Python, C#, Go, JavaScript, PHP, Kotlin and Scala
MIT License
953 stars 293 forks source link

Implement Morris Traversal for Preorder Traversal of Binary Tree #698

Open ShrutiRawal opened 3 years ago

ShrutiRawal commented 3 years ago

🚀 Feature

Task - Print the preorder traversal of a binary tree in linear time complexity and constant space complexity.

Have you read the Contribution Guidelines?

Yes

Pitch

I want to implement this in Java. Morris Traversal is a common algorithm often evaluated in interviews.

Assignees

@ShrutiRawal - Java

sukritishah15 commented 3 years ago

@ShrutiRawal - Java Assigned

ishuu7 commented 3 years ago

Hi, I can do it in C++, Can you assign it to me.