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.
I solved it but I don't understand the returns for short positions implied by the description and test cases. Say for example the case [1, 0.5]. If I sell $1000 worth of something short, then buy to cover at $500 I am now at $1500 which is 1.5x not 2.0x like in the test case. The maximum profit from a short position should be 100%.
Am I missing something?