Top K Most Active Users
After messaging interactions have been registered, design:
topKActiveUsers(k)
Return the k users with the highest interaction counts, along with their counts, ordered from highest to...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
