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.
A few years late, but for others that are wondering, in vscode just typing /** and hitting enter will create a comment block
You're logging things to the console, aren't you? Don't.
just like dynamic data bind operation , cool!
I pass all test but reach a max buffer reached error(1.5MiB).
How can i improve my code ?
thanks for your reply, I think I misunderstood this kata , make it too hard :)
6, the first till is used by 1 and 3 and the second for 2 and 4. 2 + 4 = 6.
This comment is hidden because it contains spoiler information about the solution
The sort is going to be the slowest part. An extra iteration does not make a difference in regards to time complexity.
Regardless, your solution also iterates over the array twice while sorting.
Your solution is also potentially much slower since you put the sort inside the map. Depending on the compiler, your time complexity could be much worse.
This one was challenging. Went down a few rabbit holes before it finally clicked. Great Kata!
Any hint ?
I try to go with BFS but cost too much time.
I have no idea how to go faster
cal('ab') === cal('aaa')
maybe wrong
thanks
I actually wrote them by hand... It doesn't take that long to be honest.
nice es6 feature
Loading more items...