And you're starting with $arr[0], so in your loop you can skip first element by starting to count from $i = 1.
You don't have to check for equality here. Just checking if current number is less than min is enough.
This comment is hidden because it contains spoiler information about the solution
This is the best solution I've seen so far.
Loading collection data...
And you're starting with $arr[0], so in your loop you can skip first element by starting to count from $i = 1.
You don't have to check for equality here. Just checking if current number is less than min is enough.
This comment is hidden because it contains spoiler information about the solution
This is the best solution I've seen so far.