4 ms·
1 proposer(v): 2 while not decided: 2 choose n, unique and higher than any n seen so far 26 lines. It's pseudocode, so not really only 26 lines
by bfung 10y ago
1 proposer(v):
2 while not decided:
2 choose n, unique and higher than any n seen so far
26 lines.
It's pseudocode, so not really only 26 lines as it needs some more supporting functions to "choose n, unique and..." and other stuff to make setting variable states atomic.
Good way to explain the algo though.
- bfung 10y agoAlso, this is a resubmission from 3 days ago from the same user. https://news.ycombinator.com/submitted?id=Cieplak https://news.ycombinator.com/submitted?id=Cieplak https://news.ycombinator.com/item?id=13896750 https://news.ycombinator.com/item?id=13896750
- cortesoft 10y agoNumber of lines is the most ridiculous metric anyway. Most languages have no line length limit, just replace all newlines with semicolons, and you have a one line program!
- d0vs 10y ago> Most languages have no line length limit Some languages do?
- porges 10y ago("Free-format") Fortran has a max line length of 132 chars, up from ("fixed-format") 72 chars on punch cards.
- amagumori 10y agothe ANSI C standard has a line length limit, so there are no guarantees that compilers have to function properly with longer lines than given in the standard.
- cortesoft 10y agoMany?