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

    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…

    Data Structures & Algorithms

    Topological Sort in Graph | Simple DFS + Stack Solution in Python

    3 Mins Read

    Learn how to find a topological sort of a directed acyclic graph (DAG) using depth-first search (DFS) and a stack.…

    Data Structures & Algorithms

    Is Graph Bipartite? | Leetcode 785 | Easy 2-Color DFS Solution in Python

    4 Mins Read

    Learn how to test if an undirected graph is bipartite by coloring it with two colors. Simple DFS idea, commented…

    Data Structures & Algorithms

    Number of Distinct Islands | Simple DFS solution in Python

    5 Mins Read

    Learn how to count the number of distinct islands shape in a binary grid using DFS and shape hashing. Clear…

    Data Structures & Algorithms

    Number of Islands | Leetcode 200 | Explained using BFS and DFS

    4 Mins Read

    Learn how to count the number of islands (leetcode 200) in a 2-D grid using both Breadth-First Search (BFS) and…

    Data Structures & Algorithms

    Word Ladder II | Leetcode 126 | Shortest Transformation Sequences with BFS

    6 Mins Read

    Learn how to find all shortest paths (Word Ladder II) from one word to another by changing one letter at…

    Data Structures & Algorithms

    Bubble Sort Algorithm in Python | Explained in Depth

    4 Mins Read

    Hi everyone! In this article, we’ll help you solve & understand bubble sort algorithm in Python like nowhere before. With…

    Data Structures & Algorithms

    Python Program to Find Factorial of Number Using Recursion

    6 Mins Read

    Hi everyone! In this article, we’ll guide you through the Python program to find factorial of number using recursion. The…

    Previous 1 … 20 21 22 23 24 25 Next
    Categories
    • AI & Machine Learning (4)
    • Data Structures & Algorithms (241)
      • Beginner (82)
      • Expert (52)
      • Intermediate (106)
    • Pandas (1)
    • Python (1)
    • Resume (1)
    • SQL (1)
    Recent Posts

    Confusion Matrix in Machine Learning: An Interactive Guide

    21 October 2026

    100 SQL Interview Questions with Queries and Answers (Freshers to Experienced)

    17 October 2026

    Logistic Regression in Machine Learning: Explained Visually (with Python)

    17 October 2026

    Linear Regression in Machine Learning: Explained Visually (with Python)

    17 October 2026

    100 Python Interview Questions and Answers for Freshers and Experienced (Free PDF)

    17 October 2026
    Facebook Instagram YouTube LinkedIn WhatsApp
    © 2025 Code and Debug. All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.