Pergunta de entrevista da empresa Wolverine Trading

Given numbers from 1 to n with 1 missing, find the missing number.

Resposta da entrevista

Sigiloso

13 de out. de 2011

Just use n(n+1)/2 and compare it with the sum of the numbers given

7