---
title: "Discussion on \"Introduction to Backtracking\" | Hashnode"
description: "Discussion on \"Introduction to Backtracking\". Backtracking is “Recursion + Pass by Reference + Undoing the change after function call”\nPseudo Code:\nvoid backtrackingFunction(...params){\n    if(invalid) return;\n    if(valid){\n        ans.push(value);\n        return;\n    }\n\n    --- Do the operatio..."
url: "https://hashnode.com/posts/introduction-to-backtracking/68cc5ea67a1ae8d2d88a3cab"
---

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

Discussion

# [Introduction to Backtracking](https://backtracking.hashnode.dev/introduction-to-backtracking?utm_source=hashnode&utm_medium=feed)

Backtracking is “Recursion + Pass by Reference + Undoing the change after function call” Pseudo Code: void backtrackingFunction(...params){ if(invalid) return; if(valid){ ans.push(value); return; } --- Do the operatio...

Sep 18, 2025 · 1 min read · backtracking.hashnode.dev  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#backtracking](https://hashnode.com/tag/backtracking)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#pass-by-reference](https://hashnode.com/tag/pass-by-reference)

## Written by

[Pratik Kumar](https://hashnode.com/@pratik-kr)

@pratik-kr

  
[View profile](https://hashnode.com/@pratik-kr)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
