|
| 1 | +<h1 align='center'>BACKTRACKING - ALGORITHM BASED - PROBLEMS</h1> |
| 2 | + |
| 3 | +<p>Backtracking is a systematic method for solving constraint satisfaction problems. This repository is a curated collection of coding problems that leverage the <strong>backtracking algorithm</strong> to explore all possible solutions to a problem efficiently. It is designed to guide learners and developers through the core concepts and applications of backtracking with practical examples.</p> |
| 4 | + |
| 5 | +## What is Backtracking? |
| 6 | +<p>Backtracking is a systematic method for solving constraint satisfaction problems. This repository is a curated collection of coding problems that leverage the <strong>backtracking algorithm</strong> to explore all possible solutions to a problem efficiently. It is designed to guide learners and developers through the core concepts and applications of backtracking with practical examples.</p> |
| 7 | + |
| 8 | +Backtracking is an algorithmic technique for solving problems recursively by trying to build a solution incrementally. When a solution fails to meet the constraints of the problem, the algorithm backtracks and tries another path. |
| 9 | + |
| 10 | +### Key Features of Backtracking: |
| 11 | +- Explores all potential solutions. |
| 12 | +- Avoids unnecessary computations by discarding invalid paths (pruning). |
| 13 | +- Efficient for constraint satisfaction problems like puzzles, games, and optimization tasks. |
| 14 | + |
| 15 | +## Why Use This Repository? |
| 16 | + |
| 17 | +- **Practical Examples**: Problems are explained with examples, input/output formats, and step-by-step solutions. |
| 18 | +- **Structured Layout**: Each problem has its folder containing: |
| 19 | + - **Code**: Well-documented source code for the solution. |
| 20 | + - **Explanations**: Clear walkthroughs of the logic. |
| 21 | + - **References**: Links to LeetCode or GeeksforGeeks for additional practice. |
| 22 | +- **Scalability**: Designed for learners at all levels, from beginners to advanced programmers. |
| 23 | + |
| 24 | + |
| 25 | +## Repository Content |
| 26 | +<p> |
| 27 | +<img src="https://img.shields.io/badge/problems%20count-02-orange?logo=leetcode" alt="LeetCode"> |
| 28 | +<img src="https://img.shields.io/badge/problems%20count-02-darkgreen?logo=geeksforGeeks" alt="GeeksforGeeks"> |
| 29 | +<img src="https://img.shields.io/badge/total%20problems%20count-03-blue" alt="Problem Count"> |
| 30 | +</p> |
| 31 | + |
| 32 | +| No. | Problem Name | Description | LeetCode | GFG | |
| 33 | +|-----|------------------------------------------|--------------------------------------------|------------------|-------------| |
| 34 | +| 01 | [Rat in a Maze](https://github.com/JawadSher/DSA-LeetCode-GFG-Problems-Repository/tree/main/22%20-%20Backtracking%20Algorithm%20Based%20Problems/01%20-%20Rat%20in%20a%20Maze) | Find paths through a maze using backtracking. | Non | [Link](https://practice.geeksforgeeks.org/problems/rat-in-a-maze-problem/1) | |
| 35 | +| 02 | [N-Queens](https://github.com/JawadSher/DSA-LeetCode-GFG-Problems-Repository/tree/main/22%20-%20Backtracking%20Algorithm%20Based%20Problems/02%20-%20N-Queens) | Place N queens on an N×N chessboard such that no two queens attack each other. | [Link](https://leetcode.com/problems/n-queens/) | [Link](https://practice.geeksforgeeks.org/problems/n-queen-problem0315/1) | |
| 36 | +| 03 | [Sudoku Solver](https://github.com/JawadSher/DSA-LeetCode-GFG-Problems-Repository/tree/main/22%20-%20Backtracking%20Algorithm%20Based%20Problems/03%20-%20Sudoku%20Solver) | Solve a partially filled Sudoku board using backtracking. | [Link](https://leetcode.com/problems/sudoku-solver/) | Non | |
| 37 | + |
| 38 | + |
| 39 | +--- |
| 40 | +Happy Coding! 😊 |
0 commit comments