Search
⌘K

Leetcode 781. Rabbits in Forest

Each answer x implies a color group of size x+1; the task is to aggregate identical answers and, for each x, take the minimum number of groups of size x+1 needed to cover all reporters, then sum those group sizes to get the smallest possible total rabbits.


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.