Search⌘ K
AI Features

Sort Items by Groups Respecting Dependencies

Sort Items by Groups Respecting Dependencies asks you to arrange all items so prerequisites come first and each group stays contiguous. Return any valid ordering, or an empty list if impossible.

Statement

You are given nn ...