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

Tag

# #recursion

521 posts · 13 followers

[Min SiThu](https://hashnode.com/@itsmeminsithu) · [Nov 7](https://hashnode.com/posts/recursion-the-function-that-calls-itself-and-knows-when-to-stop/6aee7ebf0cf707d576768339)

### [Recursion: The Function That Calls Itself (And Knows When to Stop)](https://itsmeminsithu.hashnode.dev/recursion-the-function-that-calls-itself-and-knows-when-to-stop?utm_source=hashnode&utm_medium=feed)

The strangest idea in programming looks like a trick — until you see how much work it quietly does for you

6 min read · [itsmeminsithu.hashnode.dev](https://itsmeminsithu.hashnode.dev/recursion-the-function-that-calls-itself-and-knows-when-to-stop?utm_source=hashnode&utm_medium=feed)

[Mayank Mahajan](https://hashnode.com/@Mayank9056) · [Oct 9](https://hashnode.com/posts/lowest-common-ancestor-of-a-binary-tree-leetcode-236-explained-simply-in-c/6ac8ff373d1abe2aedd8e660)

### [Lowest Common Ancestor of a Binary Tree (LeetCode 236) Explained Simply in C++](https://mayankdev.hashnode.dev/lowest-common-ancestor-of-a-binary-tree-leetcode-236-explained-simply-in-c?utm_source=hashnode&utm_medium=feed)

From the family-tree idea to a 10-line recursive solution, step by step

10 min read · [mayankdev.hashnode.dev](https://mayankdev.hashnode.dev/lowest-common-ancestor-of-a-binary-tree-leetcode-236-explained-simply-in-c?utm_source=hashnode&utm_medium=feed)

[Mayank Mahajan](https://hashnode.com/@Mayank9056) · [Sep 27](https://hashnode.com/posts/binary-tree-traversals-preorder-inorder-postorder-explained/6ab8e40c1e091b12c2d6b99e)

### [Binary Tree Traversals: Preorder, Inorder & Postorder Explained](https://mayankdev.hashnode.dev/binary-tree-traversals-preorder-inorder-postorder-explained?utm_source=hashnode&utm_medium=feed)

Understand the three fundamental depth-first traversals using recursion, visual examples, and C++ & Java implementations.

6 min read · [mayankdev.hashnode.dev](https://mayankdev.hashnode.dev/binary-tree-traversals-preorder-inorder-postorder-explained?utm_source=hashnode&utm_medium=feed)

[Mihai Marinescu](https://hashnode.com/@mmarinescu) · [Sep 8](https://hashnode.com/posts/a-new-perspective-on-recursion-and-the-call-stack/6aa05335a0ed1b8778a1ec2c)

### [A new perspective on recursion and the call stack](https://featuringcode.com/a-new-perspective-on-recursion-and-the-call-stack?utm_source=hashnode&utm_medium=feed)

Understand how recursion works by looking at the call stack

6 min read · [featuringcode.com](https://featuringcode.com/a-new-perspective-on-recursion-and-the-call-stack?utm_source=hashnode&utm_medium=feed)

[Arshad](https://hashnode.com/@arshadakl) · [Sep 2](https://hashnode.com/posts/a-recursion-bug-that-could-compromise-an-android-phone/6a97adb08bf6374346e253dd)

### [A Recursion Bug That Could Compromise an Android Phone](https://blog.arshadakl.in/a-recursion-bug-that-could-compromise-an-android-phone?utm_source=hashnode&utm_medium=feed)

How can a simple recursion bug become a security issue? A simple look at stack overflow, memory corruption, baseband code execution, and Android

5 min read · [blog.arshadakl.in](https://blog.arshadakl.in/a-recursion-bug-that-could-compromise-an-android-phone?utm_source=hashnode&utm_medium=feed)

[Aniket Rawate](https://hashnode.com/@aniketr) · [Jul 14](https://hashnode.com/posts/rick-s-car-battery-made-me-finally-understand-recursion/6a56378230427664cdff7195)

### [Rick’s Car Battery Made Me Finally Understand Recursion](https://aniketrawate.hashnode.dev/rick-s-car-battery-made-me-finally-understand-recursion?utm_source=hashnode&utm_medium=feed)

Sometimes the best programming lessons come from unexpected places.

6 min read · [aniketrawate.hashnode.dev](https://aniketrawate.hashnode.dev/rick-s-car-battery-made-me-finally-understand-recursion?utm_source=hashnode&utm_medium=feed)

[Bikash Mainali](https://hashnode.com/@bikash8848) · [Jul 6](https://hashnode.com/posts/how-the-call-stack-works-and-how-recursion-uses-it/6a4b4e9949ed12e53e2abd49)

### [How the Call Stack Works (and How Recursion Uses It)](https://dsa-3956.hashnode.dev/how-the-call-stack-works-and-how-recursion-uses-it?utm_source=hashnode&utm_medium=feed)

Let's build this up from the very beginning, one idea at a time. Part 1: What is a "stack" (the data structure)? Before touching code, picture a stack of plates: You can only add a plate to the top

6 min read · [dsa-3956.hashnode.dev](https://dsa-3956.hashnode.dev/how-the-call-stack-works-and-how-recursion-uses-it?utm_source=hashnode&utm_medium=feed)

[Mihai Marinescu](https://hashnode.com/@mmarinescu) · [Jun 28](https://hashnode.com/posts/react-recursive-components/6a417dd276b1555b8fe13803)

### [React recursive components](https://featuringcode.com/react-recursive-components?utm_source=hashnode&utm_medium=feed)

React recursive component that update imported json in real time.

16 min read · [featuringcode.com](https://featuringcode.com/react-recursive-components?utm_source=hashnode&utm_medium=feed)

[RS](https://hashnode.com/@rs9000) · [Jun 12](https://hashnode.com/posts/competitive-programming-series-session-2-recursion-and-backtracking/6a2c7bc507df04363829cd69)

### [Competitive Programming Series — Session 2: Recursion and Backtracking](https://rsdev.hashnode.dev/competitive-programming-series-session-2-recursion-and-backtracking?utm_source=hashnode&utm_medium=feed)

Learn recursion and backtracking with clear intuition, examples, and patterns to solve complex competitive programming problems 🚀

8 min read · [rsdev.hashnode.dev](https://rsdev.hashnode.dev/competitive-programming-series-session-2-recursion-and-backtracking?utm_source=hashnode&utm_medium=feed)

[Navdeep Rohilla](https://hashnode.com/@NavdeepRohilla) · [May 10](https://hashnode.com/posts/array-flatten-in-js/6a00addfe3eebc2e209d9707)

### [Array Flatten in JS](https://javascript-journey-by-navdeep.hashnode.dev/array-flatten-in-js?utm_source=hashnode&utm_medium=feed)

Learn how to flatten nested arrays in JavaScript using recursion, flat(), reduce(), and interview-style implementations.

9 min read · [javascript-journey-by-navdeep.hashnode.dev](https://javascript-journey-by-navdeep.hashnode.dev/array-flatten-in-js?utm_source=hashnode&utm_medium=feed)
