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.
OK, sorry for that.
This comment is hidden because it contains spoiler information about the solution
Do we have to round available money reminder up to NEXT integer?
I can't understand how +0.5 works. It looks like this statement
will always round a number up to next int.
At least, I've managed to grasp the main solution idea.
This comment is hidden because it contains spoiler information about the solution
I'm curious to look at your production code.
It'sbrilliant! Thanks. I barely managed to do it using check for negative value with if statement.
How does it work with large negative values of turns?
What the h..?
How dow think that way?
I've spent more than two hours to solve it. But now I know that there are combinations, permutations and other various factorials in this universe. Math is the most importante sciens. Know math, know everything.
This comment is hidden because it contains spoiler information about the solution
As always at first I've done by myself, then half an hour tried understand your solution, finally understood and repeated in code, but without peeping in origin.
Ufff, I rememdered that earlier I had been doing casting from int to unsigned with
(unsigned)var
. Ant it worked out again!Thanks for you hint.
This comment is hidden because it contains spoiler information about the solution
My
C
version passes all various and sample tests except last one withINT_MAX + 1ll
. Please, point me out to information I need to know to solve this problem.For
JS
I've managed for 1 minute, and it's a bit frustrating to immediately get stuck in another language. ))Loading more items...