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.
this solution was very enlightening, thank you!
{}.toString.call(map[key]) == '[object Object]'
great way of checking to see whether the value being iterated over is an object literal. hate having to deal with the array and null exceptions for typeof.
ahh gotta love ECMA 6 for this solution
Did you check to see whether one of the scores arrays had an entry greater than 100? e.g. a scores array of [105,5] would need to return false for the entire function even if the other scores summed below 100 since you cannot attain a single spin result greater than 100.
golfy to a hilarious and troll-y extent
Thanks!
such a beautiful solution
Least iterations possible, I think. Very nicely done. Had I thought about it longer and not been lazy, I believe I would have arrived at this solution.
Agreed. It is a bit involved, but not difficult. I would have rated it 4kyu, perhaps even 5kyu.
Returns true for cases such as validBraces("[{()]}") when it should return false.