Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why 37signals Doesn't Hire Programmers Based on Brainteasers. Parent comment
u mad?
in ruby,
def fact(n) n == 0 ? 1 : n.downto(1).inject(:*) end def pascal(n) 0.upto(n) {|r| print "#{fact(n)/(fact(r)*fact(n - r))} "} end
There are no comments on this comment yet.
u mad?
in ruby,