2 ms·
Me too. Just tried it, it filters out negative numbers. https://archive.org/details/a2_Lemonade_Stand_1979_Apple https://archive.org/details/a2_Lemonade_Stand
by joezydeco 9y ago
Me too. Just tried it, it filters out negative numbers.
https://archive.org/details/a2_Lemonade_Stand_1979_Apple https://archive.org/details/a2_Lemonade_Stand_1979_Apple
- ghusbands 9y agoAnd 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...