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

    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…

    Data Structures & Algorithms

    Generate all Subsets using Bit Manipulation | Leetcode 78 | Python Code

    3 Mins Read

    Given an integer array nums of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets. Return the solution in any order. Here’s…

    Data Structures & Algorithms

    Single Number | Leetcode 136 | Brute Force and Optimal solution in Python

    6 Mins Read

    Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. You must implement a solution with a linear…

    Data Structures & Algorithms

    Minimum Bit Flips to Convert Number | Leetcode 2220 | Optimal Solution in Python

    7 Mins Read

    A bit flip of a number x is choosing a bit in the binary representation of x and flipping it from either 0 to 1 or 1 to 0. Given two integers start and goal, return the minimum number of bit flips to…

    Data Structures & Algorithms

    Mastering Bit Manipulation: Swap Two Numbers Without Temporary Variable and Check if Kth Bit is Set

    8 Mins Read

    Welcome to our detailed guide on bit manipulation problems! If you’re preparing for coding interviews or just want to strengthen…

    Data Structures & Algorithms

    Reverse a Doubly Linked List | GFG Practice | Iterative Solution

    5 Mins Read

    Given a doubly linked list. Your task is to reverse the doubly linked list and return its head. Here’s the [Problem Link] to…

    Data Structures & Algorithms

    Understanding Doubly Linked Lists: Complete Guide with Real-Life Examples

    5 Mins Read

    What is a Doubly Linked List? A doubly linked list is a type of linked list where each node contains data and two…

    Previous 1 … 3 4 5 6 7 … 19 Next
    Categories
    • Data Structures & Algorithms (184)
      • Beginner (68)
      • Expert (43)
      • Intermediate (73)
    • Uncategorised (1)
    Recent Posts

    0 – 1 Knapsack Problem | 5 DP Solutions in Python

    13 August 2025

    Partitions with Given Difference | Optimal Solution

    13 August 2025

    Perfect Sum Problem | All 4 DP Solutions in Python

    13 August 2025

    Minimum sum partition | Solved using Tabulation in Python

    11 August 2025

    Partition Equal Subset Sum | Leetcode 416

    11 August 2025
    Facebook Instagram YouTube LinkedIn WhatsApp
    © 2025 Code and Debug. All rights reserved.

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