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.
with complexity O(n) this should be the best practices, thanks for sharing it in the comments
Nice way of using the reduce function. Good work!
Thanks Basyok!
great solution!!!!!
This comment is hidden because it contains spoiler information about the solution
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comma_Operator
Should help!
Hey man, very nice solution but can you clarify something for me?
I don't get what are the extra parentheses around the callback function and the comma followed by the name of the "ordered" array is doing.
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.