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.
The instructions say that it is guaranteed that either everyone has the same amount of money or only one has the maximum value
Why Phil isn't also the winner ?
Check the instructions.
@amigo9876, please edit your comment to format your code properly. By the way, it doesn't seem wrong to me. A lot of people chose this approach, including the current "best practice" solution.
It looks like this is a time series of price values of some item: you read the prices left to right, and for each price value you must decide to buy or sell or pass. You cannot go back in time. In your example, if you bought at 0.8, you would only be able to sell at 0.9 or 1.0, because selling at 1.2 would require you to go back in time.
This comment is hidden because it contains spoiler information about the solution
Dunno what to tell you, I control self.level creation and incrementation.
There's no way for it to not be an integer.