pllk / cphb

Competitive Programmer's Handbook
2.94k stars 354 forks source link

Convert (x - c) >= 0 to x >= c #70

Open hungptit opened 5 years ago

hungptit commented 5 years ago

This is a very minor change. Basically, x >= c will be slightly faster than (x - c) >= 0 (https://godbolt.org/z/cB0bJm)