LeetCode 1203. Sort Items by Groups Respecting Dependencies

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Goddamnit, a 35 minute leet code solution. Ill just skip the solution and pretend this question doesn't exist.

avitex
Автор

Great Explanation !! I missed Changing the group no. of the nodes with groups -1 which led to a cycle in groups topological Sort !! 👍👍

ramitgoel