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.
Your solution only calculates the sum of the two highest elements which is not what the kata asks for.
Probably because ChatGPT was trained on code like this. This solution is from March 2019 so it predated publicly available ChatGPT by a few years.
@test.it("should correctly sort random array")
is not a meaningful test header, especially when it appears 101 times one after the otherPlease add fixed tests to the full test suite.
Furthermore please add meaningful assertion messages. You can check out the Rust translations of the Authoring Examples how this can be done.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Fixed the other languages.
Thanks for doing that! Sorry that I have been "out of action". I got distracted by the T20 cricket :-) Hopefully I will have some time to fix the other languages soon.
Fixed for Java.
Disguised O(n²)
This comment is hidden because it contains spoiler information about the solution
Haskell: Missing tests for edgecases: https://www.codewars.com/kata/reviews/57a429f25c00236a090000c2/groups/6672a76dfeeb8c93328a99b8
Fixed.
This comment is hidden because it contains spoiler information about the solution
Loading more items...