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 Sort Algorithm in Python | Explained

    5 Mins Read

    Merge Sort is a classic divide-and-conquer sorting technique. It divides the list into two halves, sorts each half recursively, and…

    Data Structures & Algorithms

    Insertion Sort Algorithm | Explained in Python

    4 Mins Read

    Master insertion sort step by step. See how each element “inserts” into its correct place, watch a detailed dry run,…

    Data Structures & Algorithms

    Find Eventual Safe States | Leetcode 802 | DFS Solution

    5 Mins Read

    Learn how to list all “eventual safe” nodes in a directed graph. We use DFS with path-tracking to spot cycles…

    Data Structures & Algorithms

    Find Eventual Safe States | Leetcode 802 | Kahn’s Algorithm (BFS) Solution

    5 Mins Read

    We flip the graph, run Kahn’s topological BFS, and list every node guaranteed to avoid cycles. Includes clear intuition, step-by-step…

    Data Structures & Algorithms

    Course Schedule | Leetcode 207 | Kahn’s Algorithm Walk-through in Python

    5 Mins Read

    Check if you can finish every course when some need to be done first. We build the course graph, run…

    Data Structures & Algorithms

    Fibonacci Number | Recursive Python Solution

    4 Mins Read

    Find the n-th Fibonacci number with a recursive function in Python. Clear problem statement, examples, easy-to-grasp intuition, commented code, dry…

    Data Structures & Algorithms

    Palindrome String | Recursive & Iterative Python Solutions

    3 Mins Read

    Learn two easy ways to test a Palindrome String: a clean recursive method and a space saving two-pointer loop. Includes…

    Data Structures & Algorithms

    Detect Cycle in a Directed Graph – Kahn’s Algorithm (BFS Topological Check) in Python

    3 Mins Read

    Learn how to detect cycle in a directed graph with Kahn’s algorithm. Simple intuition, commented Python code, step-by-step dry run,…

    Data Structures & Algorithms

    Topological Sort (Kahn’s Algorithm) – Simple BFS Solution in Python

    3 Mins Read

    Learn how to perform topological sorting of a DAG using Kahn’s algorithm (BFS based). Clear steps, commented Python code, dry-run…

    Data Structures & Algorithms

    Detect Cycle in a Directed Graph

    3 Mins Read

    See how to solve “detect cycle in a directed graph” using depth-first search and two helper arrays. Simple idea, commented…

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