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

    Merge Intervals | Leetcode 56 | Brute Force and Optimal

    4 Mins Read

    If you want to master array problems, “Merge Intervals” is a must-know question! In this blog, we’ll explain the problem,…

    Data Structures & Algorithms

    Largest Subarray with 0 Sum – GeeksforGeeks Solution Explained

    5 Mins Read

    Are you stuck on the “Largest subarray with 0 sum” problem from GeeksforGeeks? Don’t worry! In this blog, we’ll explain…

    Data Structures & Algorithms

    Search in Rotated Sorted Array | Leetcode 33 | Optimal Binary Search

    4 Mins Read

    There is an integer array nums sorted in ascending order (with distinct values). Prior to being passed to your function, nums is possibly rotated at an unknown pivot…

    Data Structures & Algorithms

    Count occurrences of a number in a sorted array with duplicates | Optimal Binary Search

    4 Mins Read

    Given a sorted array, arr[] and a number target, you need to find the number of occurrences of target in arr[]. Here’s the [Problem Link] to begin with.…

    Data Structures & Algorithms

    Find First and Last Position of Element in Sorted Array | Leetcode 34 | Optimal Binary Search

    5 Mins Read

    Given an array of integers nums sorted in non-decreasing order, find the starting and ending position of a given target value. If target is not found…

    Data Structures & Algorithms

    Ceil The Floor | Binary Search Implementation

    3 Mins Read

    For a sorted array a[] of length n and a value x, you must return both: If either does not…

    Data Structures & Algorithms

    Search Insert Position | Leetcode 35 | Explained in Python

    3 Mins Read

    Given a sorted array of distinct integers and a target value, return the index if the target is found. If…

    Data Structures & Algorithms

    Implement Upper Bound

    3 Mins Read

    In a sorted array arr[], the upper bound of x is the index of the first element that is strictly…

    Data Structures & Algorithms

    Implement Lower Bound | Floor in a Sorted Array (GFG)

    4 Mins Read

    Given a sorted array arr[] and an integer x, find the index (0-based) of the largest element in arr[] that is less than…

    Data Structures & Algorithms

    Binary Search | Leetcode 704 | Explained in Python

    5 Mins Read

    Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums. If target exists, then…

    Previous 1 2 3 4 5 … 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.