โ† LinkedIn questions

Group users into minimal ID valid friend groups

Filed under LinkedIn

The question

Given an array indicating the group size each user belongs to in a social network, partition the users into valid groups of their designated sizes such that each group contains the smallest available user IDs for that group size.

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

Related LinkedIn questions

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