Hacker News new | ask | show | jobs
by thisiswei 4892 days ago

     def cal(n):
         if n == 1:
            return [1]
         else:
            x = cal(n-1)
            return [1] + [x[i]+x[i-1] for i in range(1,len(x))] + [1]

    I didnt know "Pascal’s Triangle" , nor did I google, maybe I just got lucky.
    (No CS degree, self-taught)
----------------------------------------------------------------------------------------------------------------------------

I'm not yet a great programmer, but no doubt I'm becoming one

Wanna hire me, for free :)

Location: SF,CA

----------------------------------------------------------------------------------------------------------------------------

my site: codefella.herokuapp.com