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

More By Author:

Check out these other kata created by thevjm

Stats:

CreatedJan 14, 2016
PublishedJan 14, 2016
Warriors Trained89
Total Skips20
Total Code Submissions218
Total Times Completed24
JavaScript Completions10
Python Completions17
Total Stars3
% of votes with a positive feedback rating85% of 17
Total "Very Satisfied" Votes13
Total "Somewhat Satisfied" Votes3
Total "Not Satisfied" Votes1
Total Rank Assessments14
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • thevjm Avatar
  • Blind4Basics Avatar
Ad