How long until the weekend?
Write a function a that takes a date vector as an input and returns the number of hours until the weekend begins. The beginning...
Inscribed circle in a triangle
A circle of radius r is inscribed in a triangle.
In the figure, Ac=x and Bc=y.
values of x & y are given.
Find the ar...
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 ...
5 years 前
已解决
How Many Months Until It's Today Again?
Given a particular date, calculate how many months must pass before that same day of the month occurs on the same day of the wee...
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...
5 years 前
已解决
birthday on same day of week
Say, Mr. X's birthday is on 20th July, 2014. It was Sunday. Determine the closest year when his birthday will again be on Sunday...
5 years 前
已解决
Find my birthday
Given a birth date x, find my age when my birth day will fall on the same day as I was born. So if I was born on Monday, what a...
5 years 前
已解决
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.
Ex...
5 years 前
已解决
Get an array of month-ends in a date range
Create a function that would return a list of month-ends falling in a given date range.
If a start date or end date falls on a...
5 years 前
已解决
Wheat on a chessboard pt 2
If a chessboard were to have wheat placed upon each square such that x grains were placed on the first square and each successiv...