Pregunta de entrevista de SandForce

Design a state machine to find a particular pattern in a serial bit stream

Respuesta de la entrevista

Anónimo

2 oct 2009

The answer is so simple you will kick yourself for not coming up with it. Simply add up the numbers. The sum will be short the number that is missing. n(n-1)/2 - sum = missing code

1