Calm-Trend Regime: Trading Strategies for Bitcoin and Ether
Two daily trading strategies for BTC and ETH. The strategies do not predict direction. They change the position size to fit the market.
Two daily trading strategies for BTC and ETH. The strategies do not predict direction. They change the position size to fit the market.
My solution to Vlad, Misha and Two Arrays was correct and still got TLE on test 14. The fix was to check the split candidates in the order l, r, l+1, r-1, … instead of left to right. Here is why that one change turns O(n²) into O(n log n).