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.
Faster than sorting.
Thanks Basyok!
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comma_Operator
Should help!
Absolutely brilliant, and fast time complexity.
How should one compare the letter counting objects for the fastest time complexity? JSON.stringify doesn't work here because the properties are not ordered. { a: 2, b: 2 } will not equal to { b: 2, a: 2 }.
This comment is hidden because it contains spoiler information about the solution
"If the final result is longer than 140 chars it must return false."
What a beast
This comment is hidden because it contains spoiler information about the solution
It's best practice to minimize time complexity in case you're dealing with large amounts of data someday.