Checking the continent names wasn't the purpose of this Kata, as the description itself explains:
"The input array and continent names will always be valid and formatted as in the list above for example 'Africa' will always start with upper-case 'A'."
Could this solution go wrong considering other scenarios? Obviously! But it totally solves the kata the way it is without mistakes as its logic is adapted to the given instructions.
So that's what that meant.. Nice one! :)
The deck is preloaded.
I get how this should work in priniciple, but how is it passing any tests with only this portion of code? Where is it getting the "deck" from ?
big brain solution
My scroll wheel really needed that workout.
scroll you
Thanks for answer, its really help me understand. Never thought about that solution. Its really great.
This comment is hidden because it contains spoiler information about the solution
How it works ? i dont understand :(
I LOL'D ON THIS ONE hahahaha! The quote really helped
Give this man a medal!
ahah, you made my day
Checking the continent names wasn't the purpose of this Kata, as the description itself explains:
"The input array and continent names will always be valid and formatted as in the list above for example 'Africa' will always start with upper-case 'A'."
Could this solution go wrong considering other scenarios? Obviously! But it totally solves the kata the way it is without mistakes as its logic is adapted to the given instructions.
lol nice
Thank you for this kata! I really enjoyed solving it!