TikTok interview question

Dijkstras algorithm and other algorithms.