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

    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…

    Data Structures & Algorithms

    Check if there exists a subsequence with sum = K | Backtracking Solution in Python

    5 Mins Read

    Hey students! If you’re exploring recursion and backtracking, this problem is a great follow-up to subsets or subsequences. It’s like the “Subsets with Sum K” but simpler,…

    Data Structures & Algorithms

    Print all subsequences with Sum = K: Complete Guide with Backtracking

    5 Mins Read

    Given an array of positive integers and a target sum K, generate and print all subsequences of the array whose sum equals K. A subsequence is a sequence that…

    Data Structures & Algorithms

    Print all subsequences/Power Set: Complete Guide with Backtracking

    4 Mins Read

    Hey students! If you’re diving into recursion and backtracking, the “Subsets” problem (also known as generating the power set or all subsequences) is a perfect starting point. It’s like deciding…

    Data Structures & Algorithms

    Find XOR of numbers from L to R | Optimal Solution using Bit Manipulation

    6 Mins Read

    You are given two integers L and R, your task is to find the XOR of elements of the range…

    Previous 1 … 8 9 10 11 12 … 25 Next
    Categories
    • Data Structures & Algorithms (240)
      • Beginner (82)
      • Expert (52)
      • Intermediate (106)
    • Uncategorised (1)
    Recent Posts

    Symmetric Tree | Leetcode 101 | Recursive DFS Approach

    2 September 2025

    Binary Tree Right Side View | Leetcode 199 | BFS and DFS Approaches

    2 September 2025

    Bottom View of Binary Tree | BFS with Horizontal Distance Mapping

    2 September 2025

    Top View of Binary Tree | BFS with Horizontal Distance Mapping

    2 September 2025

    Vertical Order Traversal of a Binary Tree | Leetcode 987 | BFS + Sorting Solution

    2 September 2025
    Facebook Instagram YouTube LinkedIn WhatsApp
    © 2025 Code and Debug. All rights reserved.

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