#3527
Find the Most Common Response
pupil · 510 · lc medium +27 · 75% accepted · 57 likes · top 86%
Description
Given 2D string array responses where responses[i] holds that day\'s survey answers, deduplicate each day\'s responses and find the most frequently occurring response overall.
Break ties by returning the lexicographically smallest response.
Code
1
2
3