---
title: "Discussion on \"Recursion\" | Hashnode"
description: "Discussion on \"Recursion\". Introduction\nRecursion\n\nWhen a function calls itself\n\nuntil a specified condition is met.\n\n\nf(){\n    print(1);\n    f();\n}\n\n\nStack Space\n\nBase Case\nThe condition that stops the recursion is called the base case.\n//cnt is a global variable\nf(){\n    if(..."
url: "https://hashnode.com/posts/recursion/66cab64becb81e0cd4a37a25"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Recursion](https://chetan77.hashnode.dev/recursion?utm_source=hashnode&utm_medium=feed)

Introduction Recursion When a function calls itself until a specified condition is met. f(){ print(1); f(); } Stack Space Base Case The condition that stops the recursion is called the base case. //cnt is a global variable f(){ if(...

Aug 25, 2024 · 5 min read · chetan77.hashnode.dev  
Read the article

-   [#parameterized-recursion](https://hashnode.com/tag/parameterized-recursion)
-   [#functional-recursion](https://hashnode.com/tag/functional-recursion)
-   [#recursion](https://hashnode.com/tag/recursion)
-   [#backtracking](https://hashnode.com/tag/backtracking)
-   [#recursion-tree](https://hashnode.com/tag/recursion-tree)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[Chetan Datta](https://hashnode.com/@chetan77)

@chetan77 · Hyderabad, India

  
[View profile](https://hashnode.com/@chetan77)

Software Engineer

I share my learnings here. Thanks for reading.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
