MakeContributions / DSA

Data Structure and Algorithm (DSA) contributions
MIT License
731 stars 774 forks source link

Flatten a binary tree to Linked List in CPP #898

Open HemanthThota39 opened 2 years ago

HemanthThota39 commented 2 years ago

Information about Algorithm

We are given a root of the binary tree, and the given binary tree needs to be flattened into a linked list:

Here are the rules which are followed while converting it into a linked list:

Other context

This is a question asked in my coding interview

welcome[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the issue template!

HemanthThota39 commented 2 years ago

Hey @ming-tsai @aayushjain7 @Ashborn-SM, I am interested in working on this issue can you please assign it to me!

JIsaacSamuel commented 2 years ago

Hey, I think I might have a solution to this. If you stiff need the code, do add the hacktoberfest label and assign it to me:)

ming-tsai commented 2 years ago

Hi @JIsaacSamuel, @HemanthThota39 is working on this issue, you could open another issue and I will assign it to you.