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.
https://www.codewars.com/kata/reviews/673c9338222dde58f86b50f8/groups/673c991f9f511a10bbc090bb
Maybe you mean, must not reach 30?
a. The function is not exported
b. The return value is a non-existent variable
Java: Since the second item of the array is just a character, why not expect a
char
instead of astring
?Ayy, you're the first solver of the kata. Congrats!
I'm glad that you liked it :)
Side note: If you want to try more katas about TS types, you can take a look at this collection I made a couple months ago.
I've made a new random tests code for this kata. Hopefully, this one is more reliable on the value retrieval and assertion than the previous one.
Let me know if there are issues with it :)
Hi, I just checked it, and there are some issues with it:
There's no need for 29k random tests, 100 - 500 should be enough. What you need to focus more on is adding more random tests for edge cases like range out of bound, zero changes, and stuff like that
I suggest that you store the switches for the input on another variable like the expected one, as when the result is wrong the input switches displayed is the same one as the one the user has changed / modify.
Add some description for the
Context
s andIt
si = leftBrackets[0]
is wrong because, again, the latest bracket is the last item of the array.Hi, sorry for the long reply. Looks good to me now. You just need to add random tests.
In the memory cells usage checks:
The first line is wrong as the latest bracket is currently on the last index. The second line is also wrong as when the code is something like this:
+[-[-]>+<]>.
this will result in 0 instead of 1 since the stateskip
from inner bracket still holds.chai
for assertion. See this: https://docs.codewars.com/languages/javascript/mochachai
for assertion. See this: https://docs.codewars.com/languages/javascript/mochaJavascript translation
Can you give us some small hint on the numbers?
Loading more items...