Close Menu
    Code and Debug
    • Home
    • Our Courses
    • Blog
    • About Us
    • Contact Us
    Facebook X (Twitter) Instagram YouTube WhatsApp
    • Home
    • Our Courses
    • Blog
    • About Us
    • Contact Us
    Facebook Instagram YouTube LinkedIn WhatsApp

    Code and Debug – BlogCode and Debug – Blog

    Code and Debug – BlogCode and Debug – Blog
    Data Structures & Algorithms

    Rat in a Maze Problem – I | GFG Practice | 2 different solutions

    15 Mins Read

    Consider a rat placed at position (0, 0) in an n x n square matrix mat[][]. The rat’s goal is to reach the…

    Data Structures & Algorithms

    N-Queens | Leetcode 51 | Brute and Optimal Solution

    13 Mins Read

    The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other. Given an…

    Data Structures & Algorithms

    Letter Combinations of a Phone Number | Leetcode 17 | Optimal Solution in Python

    6 Mins Read

    Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any…

    Data Structures & Algorithms

    Combination Sum III | Leetcode 216 | Optimal Solution in Python

    6 Mins Read

    Find all valid combinations of k numbers that sum up to n such that the following conditions are true: Return a list of all possible…

    Data Structures & Algorithms

    Subset Sums | GFG Practice | Brute and Optimal Solution

    7 Mins Read

    Given a array arr of integers, return the sums of all subsets in the list. Return the sums in any order. Here’s…

    Data Structures & Algorithms

    Combination Sum II | Leetcode 40 | Brute and Optimal Solution

    9 Mins Read

    Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers…

    Data Structures & Algorithms

    Combination Sum | Leetcode 39 | Backtracking Approach

    6 Mins Read

    Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the…

    Data Structures & Algorithms

    Generate Parentheses | Leetcode 22 | Backtracking Approach

    5 Mins Read

    Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Here’s the [Problem Link] to begin with. Example…

    Data Structures & Algorithms

    Generate All Binary Strings | Backtracking Approach

    5 Mins Read

    Given an integer N , Print all binary strings of size N which do not contain consecutive 1s. A binary string is that string…

    Data Structures & Algorithms

    Count All Subsequences with Sum = K: Complete Guide with Backtracking

    5 Mins Read

    Given an array arr of non-negative integers and an integer target, the task is to count all subsets of the array whose sum…

    1 2 3 … 16 Next
    Categories
    • Data Structures & Algorithms (154)
      • Beginner (56)
      • Expert (38)
      • Intermediate (60)
    • Uncategorised (1)
    Recent Posts

    Rat in a Maze Problem – I | GFG Practice | 2 different solutions

    22 July 2025

    N-Queens | Leetcode 51 | Brute and Optimal Solution

    22 July 2025

    Letter Combinations of a Phone Number | Leetcode 17 | Optimal Solution in Python

    22 July 2025

    Combination Sum III | Leetcode 216 | Optimal Solution in Python

    22 July 2025

    Subset Sums | GFG Practice | Brute and Optimal Solution

    22 July 2025
    Facebook Instagram YouTube LinkedIn WhatsApp
    © 2025 Code and Debug. All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.