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.
What are u talking about? Have you tested my code in console?
> var arr = groupAnagrams(["rat", "tar", "star"])
> arr
[ [ 'rat', 'tar' ], [ 'star' ] ]
> arr.length
2
I cant understand, how you got that output.
Thanks for responding so quickly. Honestly, I think the test case shouldn't deal with case insensitivity, rather the solutinons we code should, however I appreciate you addressing my concern.
By the way, I did really enjoy the challenge. Thanks!
You're solution is almost right, but for the first Light test it failed because it generates the given object :
The
undefined
should not be part of the output for the test to succeed.Cheers
I've fixed the
assertSimilarUnsorted
to compare lowercase string versions. Thanks for noticing it !I feel like the tests cases have invalid failures since it's case senistive. As a result "Rats" is not an anagram of "rats" which it most certainly is.
Light and edge tests do not validate my correct solution (tested for different inputs in console).
Here is my solution: http://pastebin.com/LXRnTSTd