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

    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…

    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…

    Previous 1 … 14 15 16 17 18 … 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.