Proportional Momentum Investment

You manage a fund containing N stocks. You are given an N × T matrix prices of positive prices, where prices[i][t] is the closing price of stock i on trading day t.

The fund follows this ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: