+ 1

Challenge - Lucky Number Of a Couple

Defined the lucky number of a couple as the days between their births (both dates included) and given their birthdays as yyyy/mm/dd, write an algorithm to find out their lucky number. ※Remember the leap years For example, given 1987/3/31 and 1989/3/31, you should return 732. (exactly 2 years, and 1988 is a leap year)

29th Jun 2017, 3:19 PM
Flandre Scarlet
Flandre Scarlet - avatar
6 Respostas
30th Jun 2017, 5:06 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 4
Should any specific language be used? And how is the data entered? As an array? Or string? Or something else?
29th Jun 2017, 3:34 PM
J.G.
J.G. - avatar
+ 3
The value returned should always be in days? Do you already have a solution figured out?
29th Jun 2017, 3:27 PM
J.G.
J.G. - avatar
+ 3
Alright, thanks for a challenge that other people haven't gotten to yet!
29th Jun 2017, 3:32 PM
J.G.
J.G. - avatar
+ 1
@J.G. yes, and yes
29th Jun 2017, 3:31 PM
Flandre Scarlet
Flandre Scarlet - avatar
+ 1
@J.G. any kind is ok
29th Jun 2017, 3:35 PM
Flandre Scarlet
Flandre Scarlet - avatar