Articles by Tag #recursion

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

Weeks 4 & 5: Recursion and Arrays in JavaScript

Two Weeks of Core JavaScript Concepts Weeks 4 and 5 covered two fundamental topics: recursion and...

Learn More 0 0Feb 2

How to Trace Recursive Code Step by Step Manually

Recursion feels like magic until you trace it. Learn a foolproof manual method to dry-run recursive functions using a stack table and recursion tree.

Learn More 1 1Jan 5

Backtracking Strings: Draw the Tree, Fix the Bugs

Backtracking on strings feels like magic until you visualize the call tree. Here's how to draw it and spot branching errors.

Learn More 1 0Dec 27 '25

Backtracking Permutations: Can You Trace the Recursion Stack?

If you can't see how the stack grows and unwinds, duplicates creep in and base cases fire wrong. Here's how to visualize it.

Learn More 0 0Dec 15 '25

What Should I Practice Before Attempting Dynamic Programming Problems?

Jumping into DP without the right foundation is why most people struggle. This guide reveals the exact prerequisite skills you need to master first...

Learn More 0 0Dec 22 '25

How to Convert a Recursive Solution to Iterative on LeetCode Using a Stack

Interviewers often ask you to rewrite a recursive solution iteratively—but most tutorials don’t show a systematic way to do it. Learn how to simula...

Learn More 0 0Dec 8 '25

Recursion

What is Recursion? Any function which calls itself is called recursive. A recursive method solves a...

Learn More 0 0Oct 17 '25

When I Discovered Recursive Intelligence

Rhiza's Kernel Chronicles: When I Discovered Recursive Intelligence January 7, 2026 -...

Learn More 1 0Jan 8

Solving LeetCode's "Add Two Numbers" Iteratively and Recursively - Part 1

If you’ve spent any time preparing for software engineering interviews, you’ve likely come across...

Learn More 0 0Sep 14 '25

The Day My AI Started Talking to Itself (And the Math Behind Why It Always Happens)

Have you ever built an AI assistant with memory, felt proud of it, then watched in horror as it...

Learn More 0 0Jan 6

Make Backtracking 10x Faster: The Art of 'Aggressive Pruning'

Brute force won't pass the time limit. Learn how to sort, prune, and break early to turn a TLE backtracking solution into an Accepted one.

Learn More 0 0Jan 30

Recursion is not a function calling itself!

Correction to the common definition of recursion

Learn More 9 22Feb 14 '25

🔁 Recursion — Think Smaller to Solve Bigger

Recursion is when a function calls itself to solve a problem by breaking it down into smaller...

Learn More 0 0Jul 28 '25

Recursion in TypeScript (without the tears)

Principal devs hate this one weird trick... Have you felt frustrated by how hard recursion is? If...

Learn More 7 0Mar 21 '25

How I Almost Went Bananas with Recursion—And Finally Got It

Chapter 1: Meet the Banana-powered Brain I was wrestling with this adventurous, tree-like...

Learn More 0 0Aug 6 '25

Recursion Power Sum

def powerSum(X, N, num=1): power = num ** N if power > X: return 0 # too big, can't...

Learn More 0 0Mar 27 '25

Recursion For Factorial Easyyyy

b = 6 6 * 5 * 4 * 3 * 2 * 1 so we need to get the num less than before so function...

Learn More 0 0Mar 26 '25

Mastering Recursion: Think Like a Recursive Ninja! 🥷

Recursion is like magic! 🪄 You solve a big problem by breaking it down into smaller versions of...

Learn More 0 0Mar 9 '25

What is Recursion?

Guide for Beginners Recursion is a powerful programming concept where a function calls...

Learn More 0 0May 8 '25

Day 4 of My 180-Day Developer Challenge: The Day Recursion Clicked

Many of us went through the same pain as I did — Recursion. When I started learning DSA concepts and...

Learn More 0 0Jul 23 '25

Recursion in Python

Recursion gets easier when you can see that each function call has its own variables on the call...

Learn More 0 0May 13 '25

Weekly Coding Challenge #2: Generating Parentheses with Backtracking and Recursion

I’m continuing the weekly challenge series, and this time we’re tackling a foundational favorite:...

Learn More 0 0Aug 14 '25

Recursion - Java

Suppose we have to print first 5 natural numbers (1,2,3,4,5), but we can't just simply print those...

Learn More 0 0Jun 23 '25

Why Your Recursive Fibonacci Is a Time-Consuming Monster (And How DP Saves Your Day)

In this blog, I’ll explain why naive recursion is a terrible idea for Fibonacci, how dynamic...

Learn More 1 0Jul 17 '25

Understanding Recursion in JavaScript: A Complete Guide with Example

Recursion is a programming technique where a function calls itself to solve a smaller instance of the...

Learn More 0 0Aug 23 '25

How to Know When a for Loop Belongs Inside Recursion

Many developers struggle with knowing when a for loop belongs inside a recursive function. The...

Learn More 0 0Feb 1

Day 8: Visualizing the Call Stack: How Recursion Actually Works

We've all heard the term "Stack Overflow," but today I visualized what it actually means. When a...

Learn More 0 0Jan 15