4 ms·
And it seems to have no obvious overflow issues. Either there are multiple versions or the claim that negative numbers work is simply wrong.
by ghusbands 9y ago
And it seems to have no obvious overflow issues. Either there are multiple versions or the claim that negative numbers work is simply wrong.
- joezydeco 9y agoMight be more simple than that. In the source of the Apple-published program, there's a comment that it was based on an earlier program from MECC* (you might remember them as the creators of Oregon Trail). That program goes back to 1973. Perhaps that version didn't check the input. * https://web.archive.org/web/20130226024448/http://theodor.lauppert.ws/games/lemonade.htm https://web.archive.org/web/20130226024448/http://theodor.la...