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.
Fixed
Fixed
Fixed.
Tests are susceptible to mutation of input: if my solution modifies the
cards
, assertion messages present the modified array as test input.Example tests stringify input arrays incorrectly:
Used array : [I@add0edd ==> expected: <1> but was: <-1>
Tests should use
Arrays.toString(arr)
.This solution passes almost all tests, is this intended?
There needs to be at least some tests for positive cases.
Java Translation (author inactive).