Calculate days until Christmas
Provided with inputs year, month, day e.g. 2019,11,12, calculate the number of days until the next Christmas day, i.e. the next ...
Tax Season ! How much is my salary?
Tax Season! I was employed for a period from x until y in a year and I get pay check of amount z on every alternate Friday of th...
2 years ago
Solved
weekday and month
Given a year and a weekday, determine how many months of that year had five of those weekdays. It is kind of easy to find.
Exam...
2 years ago
Solved
Days until next NewYear ball drop
Given a date string in the form 'yyyy-mm-dd' or 'yyyy-mm-dd hh:mm:ss', calculate the number of *days* until the dropping of the ...
2 years ago
Solved
Day counter function
Write a function called day_counter that returns the number of Mondays that fell on the first day of the month in a given year b...
2 years ago
Solved
Friday the 13th
According to superstition, lots of unpleasant stuff happens on Friday the 13th, so you might like to find the next occurence of ...
2 years ago
Solved
Calendar Matrix
Return a calendar matrix for the given values of month and year. Assume that Sunday is the first day of the week. The resulting ...