Andrew Healey 1/15/2019

Leetcode - Episode 15 - Three Tree Qs (3 x E)

Read Original

The article details the author's approach to solving three tree-based coding problems on LeetCode. It includes Python code and analysis for Invert Binary Tree, N-ary Tree Postorder Traversal, and N-ary Tree Preorder Traversal, discussing recursive and iterative solutions, time/space complexity (O(n)), and personal reflections on the elegance of the implementations.

Leetcode - Episode 15 - Three Tree Qs (3 x E)

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week