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.
Please provide an example of such cases in another comment, but this is impossible with the number of solutions in JS. Also, seems like you've passed the kata, closing!!!
It does not seem performant. I tested this against some of the other top solutions and it gets ~ 7s performance time vs ~2s performance time for other solns.
Yo, what do i have to learn to understand why str = "codewars", im talking serious!
If someone just add 10 more words, this doesn't seem very scalable.
I dont know if a failed but the random test for me is giving false as a different array but i copy and paste the random test in my code and try to see if they are different and they're completely the same array, so if you can check, maybe could be that im doing something wrong
This comment is hidden because it contains spoiler information about the solution
Groovy: Random tests expect negative results for some input values:
Don't think it's python; the python solution expects a list.
What language are you using? Seems like you're using python.
I don't use python but that looks like a tuple and you need to return a list.
for some reason the sample test show the same values but say i failed
like:
(1,0,1) should be (1,0,1)
and so on, what should I do?
This was a pretty tricky puzzle.
Definitely not an easy one...
Great feeling once you solved it..
oh, got it, thank you
That requires a higher Node's version to work: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat#browser_compatibility
Idk if im wrong, but in my machine its working, im using array.flat() but when i try to used it here it show me an error, is it allowed to use array.flat?
yes, it is normal, because its a cache
Loading more items...