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.
if len(words) > 49:
?works = True
same
Holy moly
This solution is for old kata without parenthesis.
If you want to add methods to
Array.prototype
, make sure they are notenumerable
. ( Look upObject.defineProperty
on MDN. )Adding enumerable methods there is not good practice, and I don't blame a test suite for not specifically guarding against that. If you want to use that ( perfectly valid! ) JavaScript feature, do it correctly - or suffer the consequences.
Bruh this solution is so simple compared to mine
It would really, really help if you post what language you're having this problem with, and ( properly marked up and spoilered ) your code. Help us help you!
Yes I modified Array prototype.
I modified my function and finally submitted my solution :)
Read smolen's and adityavkk's post below, maybe you're adding something to array prototype like them?
This comment is hidden because it contains spoiler information about the solution
That's not a good practice
No, I didn't. I'd have to change the task to make expected output > input. And all current solutions would be invalid.
Did you change the tests ? I'm sure it was 1 :/
How do you mean? Expected output for 0 is -1.
Loading more items...