stoimen / algorithms

Port of http://stoimen.com/blog series of algorithms on github
http://stoimen.com/blog
MIT License
82 stars 58 forks source link

I don't understand that the minmax function algorithms #1

Open gorpher opened 6 years ago

gorpher commented 6 years ago

Odd number from the start in order to avoid the subscript crossing the line, but Compare with the first number is not so, i dont known this ,do you tell me? thanks.

gorpher commented 6 years ago

i understanded that fisrt min = list[0] ,max = list[0] means alls can be compared , thanks.