Skip to main content

#DFS

Browse articles tagged with #DFS

  • DSA Patterns

    Cycle Detection in Directed Graphs Using DFS

    Complete Java solution for detecting cycles in directed graphs with time complexity analysis and implementation trade-offs.

  • DSA Problems

    Subtree of Another Tree Java Solution

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

  • DSA Patterns

    Clone Graph - Deep Copy of Connected Undirected Graph

    Comprehensive Java solution for cloning connected undirected graphs with DFS and BFS approaches, including time/space complexity analysis and implementation trade-offs.

  • DSA Problems

    Same Tree and Symmetric Tree Problems in Java

    Comprehensive Java solution for same tree and symmetric tree problems including recursive and iterative approaches with time and space complexity analysis.

  • 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

    Path Sum II Java Solution with DFS and Backtracking

    Complete Java implementation for Path Sum II problem with detailed explanation of DFS approach and backtracking techniques for finding all root-to-leaf paths with target sum.

  • 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

    Word Search and Dictionary Matching Algorithms

    Comprehensive guide to implementing word search and dictionary matching algorithms using tries, backtracking, and optimized search techniques for FAANG coding interviews.

  • 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.

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.