Etsy interview question

Given the set a a b b a a c c b b of unknown length, write an algorithm that figures out which occurs most frequently and with the most continuous repetition.

Interview Answers

Anonymous

13 Oct 2011

doesn't matter, no answer is right!

Anonymous

28 Oct 2014

Maintains Hashmap to store the overall frequency and longest continuous sequence.