paint-brush
13 Ways to Traverse a Tree: Recursion vs Iterationby@yourdevopsguy
779 reads
779 reads

13 Ways to Traverse a Tree: Recursion vs Iteration

by Your Coding Teacher33mNovember 15th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

13 Ways to Traverse a Tree: Recursion vs. iteration is a common interview question. I will show you 13 different ways to traverse a tree to compare recursion and algorithms. I assume you have basic coding skills and are familiar with stacks, queues, recursion, and loops. If this seems too advanced for you, check this article where I have listed some resources to get you started. For every problem, I will provide also a link to Leetcode so that you can play around with my solution or write your own.

Company Mentioned

Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - 13 Ways to Traverse a Tree: Recursion vs Iteration
Your Coding Teacher HackerNoon profile picture
Your Coding Teacher

Your Coding Teacher

@yourdevopsguy

Software engineer: previously at Amazon and now at eBay. Certified Professional Cloud Architect.

Learn More
LEARN MORE ABOUT @YOURDEVOPSGUY'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Your Coding Teacher HackerNoon profile picture
Your Coding Teacher@yourdevopsguy
Software engineer: previously at Amazon and now at eBay. Certified Professional Cloud Architect.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here