Pergunta de entrevista da empresa A Thinking Ape

Given a stream of data of votes, implement an algorithm to count the majority winner.

Respostas da entrevista

Sigiloso

27 de fev. de 2017

You can use an array if number of contenders are small else use a hash map.

1

Sigiloso

3 de jun. de 2017

For large data, use count-min sketch

1