Pergunta de entrevista da empresa Belvedere Trading

99 squared?

Respostas da entrevista

Sigiloso

25 de fev. de 2011

The answer is 9801. To solve this without a calculator, visualise a 100 * 100 square, which has 10,000 elements. You want to remove one row and one column from this square. Removing a row subtracts 100, and removing a column after that subtracts 99. The result is a 99*99 square. So the result is 10000 - 100 - 99 = 9801 .

2

Sigiloso

5 de jan. de 2016

Call 99 * 99 = x. Subtract 1 * 1 = 1 from x. Therefore we get 99 * 99 - 1 * 1 = (99 - 1)(99 + 1) by difference of squares. This is 98 * 100 = 9800. Now add back the 1 we subtracted earlier to get 9801.

1