jilljenn / tryalgo

Algorithms and data structures for preparing programming competitions: basic and advanced
https://tryalgo.org
MIT License
371 stars 106 forks source link

interval_cover.py: function name typo #24

Closed Shloub closed 8 years ago

Shloub commented 8 years ago

pyflakes strikes again

xtof-durr commented 8 years ago

I just corrected all errors spotted by pyflakes. These messages are left:

$ pyflakes tryalgo/ tryalgo/laser_mirrors.py:39: undefined name 'last_i' tryalgo/laser_mirrors.py:40: undefined name 'last_i' tryalgo/polygon.py:56: undefined name 'last_y' tryalgo/polygon.py:56: undefined name 'last_y' tryalgo/polygon.py:59: local variable 'last_y' is assigned to but never used

but there is no problem in fact. The variables are set later in the loop, and never accessed at the first iteration.

Thank you for pointing us out these errors.