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

    Array Leaders | Optimal Solution in Python

    3 Mins Read

    Given an array arr[] of size n, an element is called an Array Leaders if it is greater than or…

    Data Structures & Algorithms

    Majority Element | Leetcode 169 | Explained in Python

    4 Mins Read

    The “Majority Element” problem (LeetCode #169) asks you to find the value that appears strictly more than ⌊ n /…

    Data Structures & Algorithms

    Sort Colors | Leetcode 75 | Brute, Better and Optimal

    5 Mins Read

    LeetCode “Sort Colors” (#75) asks you to sort an array that contains only three distinct values—0, 1, and 2—so that…

    Data Structures & Algorithms

    Recursive Insertion Sort in Python

    3 Mins Read

    You’re asked to sort an array using Insertion Sort, but instead of the classic iterative two-loop approach, you must implement…

    Data Structures & Algorithms

    Recursive Bubble Sort in Python

    3 Mins Read

    You’re given an unsorted array of integers and asked to sort it in non-decreasing order using Bubble Sort, but implemented…

    Data Structures & Algorithms

    Sum of first n terms | Using Recursion | Explained

    2 Mins Read

    The GeeksforGeeks problem “Sum of first n terms” asks you to compute the value of and return the result. All…

    Data Structures & Algorithms

    Print N to 1 without loop | Normal Recursion and Backtracking

    3 Mins Read

    The “Print N to 1 without loop” problem on GeeksforGeeks challenges you to output the integers from N down to…

    Data Structures & Algorithms

    Print N times with Recursion | GFG

    3 Mins Read

    The “Print N times with Recursion” problem on GeeksforGeeks asks you to output the string “GFG” exactly N times, using…

    Data Structures & Algorithms

    Check if a Number is Prime or Not | GFG

    4 Mins Read

    A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.Formally,…

    Data Structures & Algorithms

    4Sum | Leetcode 18 | Explained in Python

    7 Mins Read

    The LeetCode “4Sum” problem asks you to find all unique quadruplets in an integer array nums such that Key details:…

    Previous 1 … 9 10 11 12 13 … 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.