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, MetaFraud Ring Components
Difficulty: HardAsked by: Fawry, MetaDetect Cycle in Directed Graph
Difficulty: MediumAsked by: Siemens EDAKeys and Rooms
Difficulty: MediumAsked by: CareemNumber of Islands
Difficulty: MediumAsked by: Dubizzle, NoonValidate 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