Light Mode
Dark Mode
I think there is a bug

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: May 19, 2023, 7:09 a.m.
Updated: May 19, 2023, 10:30 a.m.
0
10
User avatar
mordfan