Hey,
I cannot pass this one because I fail the this test:
assert stock_profit([60, 50, 51, 52, 40]) == 2
I think this test is incorrect and the result of it should be 0.
There is one very similar that passes with no problem:
assert stock_profit([22, 10, 4, 4, 1]) == 0
Regards
Created at: 2023/05/19 07:09; Updated at: 2023/05/19 10:30
The question is resolved.