Pergunta de entrevista da empresa Dataminr

How would you check if a year was a leap year?

Resposta da entrevista

Sigiloso

6 de fev. de 2017

First I asked for the specific conditions for which a year would be considered a leap year. Once I had these, I formalized things such as input and output (given year as an integer, return a boolean), and then wrote a basic algorithm to deduce whether or not a year is a leap year.

1