Marchex Interview Question: Given two dates, determine if... | Glassdoor

Interview Question

Software Interview(Student Candidate) Seattle, WA

Given two dates, determine if they are <1 months apart

 , 1 apart, or >1 month apart.
Answer

Interview Answer

1 Answer

0

Didn't do too well, but I assumed the days/months/years are numerical values vs. strings which allowed me to use a few if statements and subtraction to get my answer.

Interview Candidate on Nov 9, 2015

Add Answers or Comments

To comment on this, Sign In or Sign Up.