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

    Majority Element II | Leetcode 229 | Explained in Python

    5 Mins Read

    You’re given an integer array nums of length n.An element is called a majority element II if it appears strictly…

    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,…

    Previous 1 2 3 4 5 6 … 12 Next
    Categories
    • Data Structures & Algorithms (115)
      • Beginner (46)
      • Expert (34)
      • Intermediate (35)
    • Uncategorised (1)
    Recent Posts

    Median of Two Sorted Arrays | Leetcode 4 | Optimal Binary Search Solution

    10 July 2025

    Minimize Max Distance to Gas Station | GFG Practice | Optimal Binary Search

    10 July 2025

    The Painter’s Partition Problem-II | GeeksforGeeks Solution Explained

    10 July 2025

    Allocate Minimum Pages | GFG | Binary Search

    10 July 2025

    Aggressive Cows | GeeksforGeeks Solution Explained | Binary Search

    10 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.