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

    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…

    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…

    Previous 1 … 19 20 21 22 23 … 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.