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.
Undefined behavior should not be best practice, nor clever.
Idk what you're doing but the C++ version works fine.
Yep, does not compile whatever...:
Fixed.
good point
I think it's undefined behaviour to modify a value more than once between sequence points.
see https://port70.net/~nsz/c/c11/n1570.html#6.5p3
Does not compile even with solution. C++
ok
I've edited how
k
was generated, it should be fixed now for both C and C++. Mark as resolved if it is.k
should be less thann
because the balls are numbered from0
ton - 1
.C++ has also the same problem.
Where does it say i have to return -2 if k and n are equal?
Please fix the c version
@danderle ..
Its in C
@danderle ..
Getting a 0 as Input
Loading more items...