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) actually was not obvious to me. I read the instruction one more time and didn't find anything about this spicific.
B) Thanx a lot! I didn't know.
A) but... that's the specification...
3*3 + 2*'\n'
= 11 chars, just as expected.B) replaceAll is available in node 15+. CW's node environment is at most 14 (for now).
In JavaScrypt got interesting test:
maze is:
.W.
.W.
...
maze.length: 11
typof maze == string
A) maze contains other symbols apart from . & W
B) for some yet unkown reason function replaceAll doesn't work - test returns error.
UPD: solved this bug by filtering initial maze splitted in array
Thank you for response! I will try harder
It's not always easy to understand the error messages - here the 82/82 means that is how many tests you completed before the time-out limit (of 12seconds/12000ms).
In fact there are 100 large random tests, so you are missing 18 out of 100. Your code needs to be a bit faster, or - more likely - you need a more efficient general approach.
edit- there are 100 large random tests in Python, I just noticed you are working in JavaScript so exact number might be different - in any case, the general comment is correct. Probably your approach is too inefficient, and the kata wants you to find a faster way to solve it.
This comment is hidden because it contains spoiler information about the solution
Great solution!
Fantastic! Bravo! I spent more time exploring your code than writing my own. And I learned so many useful and interesting things from these refined solution!
Awesome!