โ† Samsung questions

BFS or DFS Problem

Filed under Samsung

The question

Write code for a problem that can be solved using BFS or DFS.

No write-up yet. Related questions below have one.

Related Samsung questions

Collected from public candidate posts and coding forums. Updated Nov 2026.