Search
⌘K

Leetcode 1733. Minimum Number of People to Teach

Given users with known languages and friendship edges, choose one language to teach to some users so that every friendship pair shares at least one language and return the minimum number taught. The core challenge is identifying "bad" friendship edges where users can't communicate and picking the language that minimizes required teachings (a set/counting/greedy selection over those users).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.