#1817
Finding the Users Active Minutes
pupil · 465 · lc medium +26 · premium · verified · 80.8% accepted · 863 likes · top 92%
Description
Given logs[i] = [IDi, timei] and integer k, the UAM for a user is the count of distinct minutes they acted. Build a 1-indexed array answer of size k where answer[j] counts users whose UAM equals j. Return answer.
Code
1
2
3