Enjoyable little coding challenge from @cassidoo this week.
Solved in Ruby (using Rails's Active Support for time munging)
The problem: https://buttondown.com/cassidoo/archive/it-is-never-too-late-to-be-what-you-might-have/
@andycroll `each_cons` yes please (`sort` is unnecessary)
@benpickles @andycroll Only if you presume that the times arrive in order (I didn’t)
@andycroll i wrote about my approach (the same but different) https://www.benpickles.com/articles/97-find-the-longest-gap
@andycroll you're right! i didn't fully read the question, schoolboy error