Write a code that returns the 5 most commonly occurring strings in a list.
For example, the list would be something like: "a" "b" "c" "f" "a" "d" "e" "f" "b" "f" "f"
And the function would return:
f 4 a 2 b 2 c 1 d 1
Create a max heap taking frequency as the comparison point.
Now, the first 5 elements will be the 5 most common.
Time complexity: O(n log n)
The following metrics were computed from 1 interview experience for the Adobe Engineering role in San Jose, California.
Adobe's interview process for their Engineering roles in San Jose, California is extremely selective, failing the vast majority of engineers.
Candidates reported having mixed feelings for Adobe's Engineering interview process in San Jose, California.