30:00
Find the maximum profit from buying and selling stock with unlimited transactions. You may hold at most one share at a time.
1≤prices.length≤3×1041 \leq \text{prices.length} \leq 3 \times 10^41≤prices.length≤3×104
0≤prices[i]≤1040 \leq \text{prices}[i] \leq 10^40≤prices[i]≤104