Pergunta de entrevista da empresa Juniper Networks

How would you design an algorithm that sorts numbers in a limited set 0..100?

Resposta da entrevista

Sigiloso

27 de jun. de 2012

The trick is that you aren't writing a sort algorithm per-se, you're writing a histogram collection algorithm, and then you dump out the counts in each bin in order. Clever.