Timeline for Output integers in negative order, increase the maximum integer everytime
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 19, 2016 at 16:34 | comment | added | devRicher | I see, yes, 101 is invalid. | |
Dec 19, 2016 at 16:26 | comment | added | AdmBorkBork |
@devRicher Zero is indeed a special case, because it's smaller than the loop delimiter of 1 . The code above won't error without the handling at the end, instead it will output 101 for input 0 . Exiting with an error would actually be longer (but shorter yet would be not worrying about input 0 at all).
|
|
Dec 19, 2016 at 16:19 | comment | added | devRicher | 0 is not exactly a special case, if the code will error, thats valid. | |
Dec 19, 2016 at 15:30 | history | answered | AdmBorkBork | CC BY-SA 3.0 |