Repository navigation
Commit accfafb
Max Freedom Pollard
Check only the decimal-character transition points in checkNumDigits
Halt the power-of-ten loop on signed overflow going negative rather than
on a maxExp constant, and drop the -1000..1000 sweep: the loop already
visits both sides of every transition where the character count changes.1 parent 6498a90 commit accfafb
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
245 | 248 | | |
246 | 249 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 250 | + | |
253 | 251 | | |
254 | 252 | | |
255 | 253 | | |
256 | 254 | | |
257 | | - | |
258 | 255 | | |
259 | 256 | | |
260 | 257 | | |
| |||
0 commit comments