Question: The first is a problem that I have asked people to sketch out an approach for in job interviews. It is simply this: Given a
The first is a problem that I have asked people to sketch out an approach for in job interviews. It is simply this:
Given a year in the modern era, tell me if it is a leap year.
Rule: A year is a leap year, if it is a multiple of four, unless it is a multiple of 100. Oh, and if it is a multiple of 400, then it is a leap year. If this isn't clear, google it!
Step by Step Solution
★★★★★
3.42 Rating (149 Votes )
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Step 1 Check if the year is divisible by 100 If the year is divisible by 100 check if the year is di... View full answer
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
