kdn251 / interviews

Everything you need to know to get the job.
https://www.youtube.com/channel/UCKvwPt6BifPP54yzH99ff1g?view_as=subscriber
MIT License
63.64k stars 12.91k forks source link

Should be min of min and value at indes #217

Closed kedhas closed 2 years ago

kedhas commented 2 years ago

https://github.com/kdn251/interviews/blob/a70c2250ec5f2e43972a359e050182f970ea2ffd/leetcode/array/BestTimeToBuyAndSellStock.java#L30

should be min = Math.min(min, prices[i])

Jiruiyang commented 2 years ago

来信收到,谢谢,祝您一切顺利!

kedhas commented 2 years ago

False positive