doocs/leetcode

Iterating in array

turkishjoe opened this issue · 2 comments

As i see, It should be for($i = 0;...) not for($i=1...). You use iterating for all elements on another languages. You also can use forearch($prices ...)

Hello, the PHP code for question 121 is also acceptable. However, to maintain consistency with the coding style of other programming languages, I will make some adjustments to the code. Thank you very much for your feedback.