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

    Move Zeroes | Leetcode 283 | Explained

    7 Mins Read

    Given an integer array nums, move all 0’s to the end of it while maintaining the relative order of the non-zero elements.…

    Data Structures & Algorithms

    Shortest Path in a Binary Matrix | Leetcode 1091 | Dijkstra’s Algorithm with Normal Queue (BFS)

    4 Mins Read

    Find the shortest clear path from the top-left to bottom-right of a 0-1 grid. We explain the intuition, walk through…

    Data Structures & Algorithms

    Printing the Actual Shortest Path with Dijkstra Algorithm

    3 Mins Read

    Need not just distances but the real route? Learn how to extend Dijkstra’s algorithm to reconstruct the shortest path from…

    Data Structures & Algorithms

    Dijkstra’s Algorithm in Python Using a Set

    4 Mins Read

    See how to run Dijkstra with a set instead of a heap. We break down the idea, walk through clear…

    Data Structures & Algorithms

    Dijkstra’s Algorithm with a Priority Queue

    4 Mins Read

    Learn to implement Dijkstras Algorithm with a Priority Queue using a min-heap (heapq). We cover the problem statement, clear intuition,…

    Data Structures & Algorithms

    Shortest Path in a Weighted Directed Acyclic Graph | Topological-Sort + Relaxation | Python

    5 Mins Read

    Learn how to find single source shortest path in a weighted directed acyclic graph (DAG) in linear time. We explain…

    Data Structures & Algorithms

    Shortest Path in an Undirected Graph with Unit Distance – Clear BFS Solution in Python

    4 Mins Read

    Find the Shortest Path in an Undirected Graph from a source to every other node when every edge costs 1.…

    Data Structures & Algorithms

    Check if array is sorted | Explained using Python Code

    2 Mins Read

    Learn a one-pass way to check if array is sorted in non-decreasing order. Intuition, commented Python code, dry run, and…

    Data Structures & Algorithms

    Find the second largest and second smallest element in an Array | Explained

    4 Mins Read

    Need the second smallest and second largest in one array? We compare a clear two-pass “better” method with a one-pass…

    Data Structures & Algorithms

    Quick Sort Algorithm in Python | Explained

    6 Mins Read

    Quick Sort is a popular sorting algorithm that follows a divide-and-conquer approach. When implemented well, Quick Sort can be extremely…

    Previous 1 … 5 6 7 8 9 … 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.