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.
it's horrible that this should time out
Don't forget the spoiler flag.
The solution was submitted in a different version of
Nodev8 (if you compare to Chrome), where it worked.Neither can I. Which led me to the conclusion that this solution is incorrect.
This comment is hidden because it contains spoiler information about the solution
It often does. Now that I retried the solution, it failed the first time, and passed the second time in 11.5 seconds. More optimized solutions pass in around 7-9 seconds.
This kind of micro-optimization katas are somewhat problematic on CW, as fluctuations in CW performance can make existing katas either too easy or outright impossible.
What? how does this not time out?
How does this even work!? I accidentally came to the same answer!
Ah! I see it. It's what I missed. Thanks fam
It is in the MDN docs here. This table shows all of the 'magic strings' you can pass to
String.prototype.replace
.That's not regex and it's not inline with the docs at MDN. Where am i wrong?
Hi ozichukwu,
$1
refers to the first group (captured by the()
).why does
"$1"
work? what does it mean?MDN said the second argument of
replace
can either be string or function. Thanks in advance.This can't flip the array on the browser
This comment is hidden because it contains spoiler information about the solution
cord length>28? why?
Loading more items...