Google SRE SWE
https://www.google.com
Round-1 - Online exam on Sep 5th, 2020
Coding Task: You are provided with a log file and a parser. The parser outputs the log in the following format: {[gopa, 5], [karan, 10], [Aditi, 50]}
, where each entry consists of a person's name and the number of conversations they participated in.
Task: Write a program to identify the top 5 individuals who engaged in the most conversations.
Additional Questions:
How would you test your program to ensure it works correctly?
How could you further improve the program?
What is the time complexity of your solution?
What other data structures you could use in this program?
Last updated
Was this helpful?