Maximum Drawdown
Programming Interview
Questions
Maximum Drawdown
Given a list of stock prices prices, Write a function maximum_drawdown that calculates the maximum drawdown of a stock.
For example:
prices: [100, 80, 120, 90, 110, 70]
output: 41.67
Your output should be represented as a percentage, rounded to 2 decimal places.
Tests - Login / Sign up to submit your code!
Efficiency
Test Case 1
Test Case 2
Test Case 3
Test Case 4
Test Case 5
Test Case 6
Test Case 7
Test Case 8
Test Case 9
Test Case 10
Test Case 11
Test Case 12
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results
Submit to See Results