---
title: "#treetraversals articles | Hashnode"
description: "Explore 30 articles tagged #treetraversals on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/treetraversals"
---

Tag

# #treetraversals

30 posts · 2 followers

[Haocheng Lin](https://hashnode.com/@HAOCHENGLIN) · [Oct 24, 2025](https://hashnode.com/posts/codeforces-1060-div-2-problem-d-catshock/68fb4aa1dfa7c82b2a3098f0)

### [Codeforces 1060 (Div 2) Problem D. Catshock](https://codeforcesarchive.hashnode.dev/codeforces-1060-div-2-problem-d-catshock?utm_source=hashnode&utm_medium=feed)

Learn how to solve the Catshock problem, a Codeforces challenge about guiding a cat through a tree without getting trapped.

5 min read · [codeforcesarchive.hashnode.dev](https://codeforcesarchive.hashnode.dev/codeforces-1060-div-2-problem-d-catshock?utm_source=hashnode&utm_medium=feed)

[Vanamindiafoundation](https://hashnode.com/@vanamindiafoundation) · [Sep 5, 2025](https://hashnode.com/posts/why-the-power-of-planting-a-tree-matters-now-more-than-ever/68bab11fe1ea5d2ffa2ab1c0)

### [Why the Power of Planting a Tree matters now more than ever](https://power-of-planting-a-tree-matters-now.hashnode.dev/why-the-power-of-planting-a-tree-matters-now-more-than-ever?utm_source=hashnode&utm_medium=feed)

Tree Planting Campaigns are powerful reminders that even small steps can create a big impact on the planet. By restoring green cover, they improve air quality, reduce urban heat, and bring communities together for a common purpose. These initiatives ...

1 min read · [power-of-planting-a-tree-matters-now.hashnode.dev](https://power-of-planting-a-tree-matters-now.hashnode.dev/why-the-power-of-planting-a-tree-matters-now-more-than-ever?utm_source=hashnode&utm_medium=feed)

[HR Insider - Your Career Growth](https://hashnode.com/@hrinsiderin) · [Aug 2, 2025](https://hashnode.com/posts/understanding-binary-trees-bst-and-recursive-tree-traversals-in-dsa/688e32c67b93d20c79bb53a5)

### [Understanding Binary Trees, BST, and Recursive Tree Traversals in DSA](https://hrinsiderin.hashnode.dev/understanding-binary-trees-bst-and-recursive-tree-traversals-in-dsa?utm_source=hashnode&utm_medium=feed)

Learn about binary trees, BSTs, and recursive tree traversals to enhance your data structures and algorithms skills in this comprehensive guide

1 min read · [hrinsiderin.hashnode.dev](https://hrinsiderin.hashnode.dev/understanding-binary-trees-bst-and-recursive-tree-traversals-in-dsa?utm_source=hashnode&utm_medium=feed)

[Anni Huang](https://hashnode.com/@HuangAnni) · [Jul 11, 2025](https://hashnode.com/posts/leetcode-653-two-sum-iv-input-is-a-bst-in-order-traversal-easy-java-on/68705ba93f60a083c95ac737)

### [LeetCode 653 Two Sum IV - Input is a BST - In Order Traversal (Easy, Java, O(n))](https://huanganni.hashnode.dev/leetcode-653-two-sum-iv-input-is-a-bst-in-order-traversal-easy-java-on?utm_source=hashnode&utm_medium=feed)

LeetCode 653. Two Sum IV - Input is a BST Approach The problem requires us to find if there exist any two nodes in a Binary Search Tree (BST) that sum up to a given target value k. The solution uses an inorder traversal approach combined with a has...

3 min read · [huanganni.hashnode.dev](https://huanganni.hashnode.dev/leetcode-653-two-sum-iv-input-is-a-bst-in-order-traversal-easy-java-on?utm_source=hashnode&utm_medium=feed)

[ANSHU](https://hashnode.com/@anshu99) · [Jun 7, 2025](https://hashnode.com/posts/tree-data-structure/684445f5740639954d7aa5cb)

### [Tree Data Structure](https://tree-magic.hashnode.dev/tree-data-structure?utm_source=hashnode&utm_medium=feed)

Introduction to Trees in C++ When working with data structures in C++, most beginners start with arrays, stacks, or queues—structures where data is stored linearly. But not all problems fit neatly into a straight line. That’s where trees, a powerful ...

12 min read · [tree-magic.hashnode.dev](https://tree-magic.hashnode.dev/tree-data-structure?utm_source=hashnode&utm_medium=feed)

[Subhayan Mukherjee](https://hashnode.com/@Shubh-exe) · [Apr 7, 2025](https://hashnode.com/posts/a-weird-glitch-in-bst-tree-building/67f3d3b28de6b037f4fb0bc1)

### [🎉 A Weird Glitch in BST Tree Building!](https://bst-uniqueness-paradox.hashnode.dev/a-weird-glitch-in-bst-tree-building?utm_source=hashnode&utm_medium=feed)

Discover how two different Binary Search Trees can share the same inorder and postorder traversals. A surprising exception in DSA fundamentals explained sim

2 min read · [bst-uniqueness-paradox.hashnode.dev](https://bst-uniqueness-paradox.hashnode.dev/a-weird-glitch-in-bst-tree-building?utm_source=hashnode&utm_medium=feed)

[Chetan Datta](https://hashnode.com/@chetan77) · [Mar 23, 2025](https://hashnode.com/posts/binary-tree-zigzag-level-order-traversal/67dff75ec9659a25f0ec8892)

### [Binary Tree Zigzag Level Order Traversal](https://chetan77.hashnode.dev/binary-tree-zigzag-level-order-traversal?utm_source=hashnode&utm_medium=feed)

Problem Given the root of a binary tree, return the zigzag level order traversal of its nodes' values. (i.e., from left to right, then right to left for the next level and alternate between). (link) Example 1: Input: root = \[3,9,20,null,null,15,7\] O...

2 min read · [chetan77.hashnode.dev](https://chetan77.hashnode.dev/binary-tree-zigzag-level-order-traversal?utm_source=hashnode&utm_medium=feed)

[Keerthi Janjanam](https://hashnode.com/@TrailblazeTales) · [Mar 8, 2025](https://hashnode.com/posts/the-grandfather-paradox-can-you-change-the-past-without-destroying-the-future/67cbdf5c76100c478e23dfca)

### [The Grandfather Paradox: Can You Change the Past Without Destroying the Future?](https://keerthijanjanam.hashnode.dev/the-grandfather-paradox-can-you-change-the-past-without-destroying-the-future?utm_source=hashnode&utm_medium=feed)

The Grandfather Paradox is an interesting way to think about time travel. If we ever find a way to go back in time, we will need to be careful. One small ch

2 min read · [keerthijanjanam.hashnode.dev](https://keerthijanjanam.hashnode.dev/the-grandfather-paradox-can-you-change-the-past-without-destroying-the-future?utm_source=hashnode&utm_medium=feed)

[Payal Porwal](https://hashnode.com/@PayalPorwal) · [Mar 6, 2025](https://hashnode.com/posts/understanding-javascript-dom-a-complete-guide/67c96dde35e3b5eae365bc4a)

### [Understanding JavaScript DOM: A Complete Guide](https://codeswithpayal.hashnode.dev/understanding-javascript-dom-a-complete-guide?utm_source=hashnode&utm_medium=feed)

Learn JavaScript DOM essentials: structure, events, form handling, dynamic web interactions. Perfect for web development

3 min read · [codeswithpayal.hashnode.dev](https://codeswithpayal.hashnode.dev/understanding-javascript-dom-a-complete-guide?utm_source=hashnode&utm_medium=feed)

[Eniola Bakare](https://hashnode.com/@EniolaBakare) · [Feb 3, 2025](https://hashnode.com/posts/implementing-a-binary-search-tree-in-javascript/67a12995ef536585dd647eeb)

### [Implementing a Binary Search Tree in Javascript](https://eniola-bakare.hashnode.dev/implementing-a-binary-search-tree-in-javascript?utm_source=hashnode&utm_medium=feed)

Implementing A Binary Search Tree in Javascript

16 min read · [eniola-bakare.hashnode.dev](https://eniola-bakare.hashnode.dev/implementing-a-binary-search-tree-in-javascript?utm_source=hashnode&utm_medium=feed)
