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.
Rejected, see remarks in translation and translating example for reference
Rejected:
No random tests
No corner cases
Missing helpful assertion messages for debugging in fixed tests
Outdated version
That's very easy task for all Java's users. I think, that it task is easely than other task's.
"? true : false" is unnecessary
This comment is hidden because it contains spoiler information about the solution
best answer and easy to understnad! anyway i'm curious how is it that if length is given, u just take the array length -1 instead of using the length variable itself? i'm cracking my head wrapping this part :(
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thanks a lot!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Yea, looking back at this and what I implemented was not great. Haha. I have refactored the code such that it only references the function and removed all that companion object stuff. Also I removed the complicated tests and just left a simple test that expects given inputs and expected outcomes. Let me know what you think. Thanks
Why a class with a companion object instead of just a function?
What's that with
Should return arrays flattened and sorted
andexampleTest
that are almost identical, but still different?This comment is hidden because it contains spoiler information about the solution
Loading more items...