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.
Nice explanation for identity.
Nice: Checking the count-variable in for-statement, so no need for extra break.
IMHO, zabih1988's solution down below is the Best Practice for this solution.
It's too bad this hasn't gotten more Best Practice votes. I think this is the cleanest and simplest answer I've seen yet. Good job!
4
Confused about my errors. The deleteNth tests always pass, but I keep getting an error with the random tests. Anyone have a clue what I'm doing wrong? How can I keep getting the right answers, but fail to have arrays of the same length?
array lengths differed, expected.length=45 actual.length=44
Your function is returning
" + 10 + 2"
more than it's expected, the brackets show the difference between both values. In that case, the input value should be 12 and its expanded form is"10 + 2"
.Sorry about that. Here is the error msg with proper markdown:
expected:<10 + 2[]> but was:<10 + 2[ + 10 + 2]>
Use proper markdown otherwise, well, you can see what is shown.
I'm receiving this feedback in Java: expected:<10 + 2[]> but was:<10 + 2[ + 10 + 2]>
What does the part in brackets mean? Is this an issue with the kata?