Pergunta de entrevista da empresa Marchex

Given a date, add a month, a day, a week. Now reverse the process.

Resposta da entrevista

Sigiloso

13 de ago. de 2016

Date manipulation is always tricky using the Georgian calendar. The question is designed to elicit your ability to extract the relevant parameters and return a result that will meet the needs of the program. Anyone who thinks much about the calendar will see all the problems that there are with dates.