ByteDance / TikTok logoByteDance / TikTok
Coding·60 minMembers

Course Schedule and Topological Sort on a Directed Graph

Members only

Detect whether a directed-graph schedule is satisfiable (cycle detection on a DAG), then extend to producing a valid order — used both as a SWE coding question and as the warmup before a word-ladder s...

SWE
Infra Eng
graph
bfs
dfs
topological-sort
medium
Frequency
Medium
Last asked
2026-10-05
Stage
phone-screen · onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...