Beta
Will Nessie Emerge?
10 of 24thevjm
Description:
It is a rare occasion to see Nessie, the Loch Ness Monster, emerge from the waters of Loch Ness. You are planning a trip to the Scottish Highlands and would like to know if there is a chance you will see Nessie.
What do we know about Nessie? She is a creature of habit, and will only emerge once during a 100-day window, every 1500 days, and starting with 1937-07-30, we can determine these date ranges.
Here are the first three ranges:
1937-07-30 - 1937-11-06
1941-09-07 - 1941-12-15
1945-10-16 - 1946-01-23
...
Define a function willNessieEmerge that takes a date string in ISO 8601 format. Your function should return true/false depending on if the given date is in one of these date ranges (inclusive).
Date Time
Algorithms
Similar Kata:
Stats:
Created | Jan 14, 2016 |
Published | Jan 14, 2016 |
Warriors Trained | 89 |
Total Skips | 20 |
Total Code Submissions | 218 |
Total Times Completed | 24 |
JavaScript Completions | 10 |
Python Completions | 17 |
Total Stars | 3 |
% of votes with a positive feedback rating | 85% of 17 |
Total "Very Satisfied" Votes | 13 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 14 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |