Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I could not find any solution actually doing this because of built-in copy or const ref semantics but added a test for it anyways:
https://www.codewars.com/kumite/67346c955b6178ce3d28a71e?sel=67346c955b6178ce3d28a71e
me too... was expecting a 2 minute one liner for a dopamine boost lol
trickier than it looks, nice little wake up call
This comment is hidden because it contains spoiler information about the solution
This annoyed me until I realised SOUTH, EAST was not the equivalent of EAST, SOUTH because of the fucking mountains.. nice little kata actually
Really enjoyed this kata, as a beginner it really teaches you logic... really impressed with some of the refactored solutions on here, until I saw them I would have sworn it wasnt possible to do this in one line of code.. or even 10 lines of code... I'm expecting to find a similar one higher up with months and leap years taken into consideration now... Thanks for that davazp