Skip to main content

#BFS

Browse articles tagged with #BFS

  • DSA Patterns

    Number of Islands Problem Solution in Java

    Complete Java implementation for counting islands in a 2D grid using DFS and BFS approaches with time and space complexity analysis.

  • DSA Problems

    Invert Binary Tree Algorithm Solution

    Complete Java implementation for inverting a binary tree with recursive and iterative approaches, including time complexity analysis and edge case handling.

  • DSA Patterns

    Subtree of Another Tree Algorithm Solution

    Complete Java implementation for checking if one binary tree is a subtree of another, including multiple approaches and time complexity analysis.

  • DSA Patterns

    Invert Binary Tree Algorithm Solution

    Complete Java implementation of binary tree inversion with recursive and iterative approaches, including time complexity analysis and practical considerations for FAANG interviews.

  • DSA Patterns

    Tree Path Sum Problems in Java: DFS and BFS Solutions

    Comprehensive guide to solving tree path sum problems using DFS and BFS traversal techniques with optimal time and space complexity analysis.

  • DSA Patterns

    Lowest Common Ancestor in Binary Trees and Graphs

    Comprehensive Java solution for finding the lowest common ancestor in binary trees, including iterative and recursive approaches with time complexity analysis.

  • DSA Patterns

    Breadth-First Search Queue Patterns in Java

    Comprehensive guide to BFS queue patterns including level-order traversal, shortest path finding, and multi-source exploration with practical Java implementations.

Stay in the Loop

Get curated DSA patterns, coding problems, frontend and backend LLD/HLD, and AI/ML System Design insights delivered straight to your inbox. No spam, just focused interview and engineering content.