This repository contains codes for various data structures and algorithms in C, C++, Java, Python, C#, Go, JavaScript, PHP, Kotlin and Scala
953
stars
293
forks
source link
Implement Morris Traversal for Preorder Traversal of Binary Tree #698
Open
ShrutiRawal opened 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