DFS

Challenges: 6Medium: 5Hard: 1

This DFS set gathers 6 coding problems, with a mix of 5 medium, 1 hard. They show up in interviews at companies like Amazon, Meta, Fawry, Siemens EDA, Careem, so you can master the pattern once and recognize it everywhere.

DFS coding problems

  • Cyclic Dependency Detector

    Difficulty: MediumAsked by: Amazon, Meta
  • Fraud Ring Components

    Difficulty: HardAsked by: Fawry, Meta
  • Detect Cycle in Directed Graph

    Difficulty: MediumAsked by: Siemens EDA
  • Keys and Rooms

    Difficulty: MediumAsked by: Careem
  • Number of Islands

    Difficulty: MediumAsked by: Dubizzle, Noon
  • Validate Binary Search Tree

    Difficulty: MediumAsked by: Dubizzle

Asked by

Ready to practice for real?

Work through DFS problems in the editor, run your code, and check your solution against real test cases.

Practice coding challenges, start free