Live data from Hacker News

Viewing profile — nabb

nabb

HN member
Joined
Tue, May 24, 2011, 7:57 AM UTC
HN karma
11
Public activity
6 items

About nabb

No profile information was provided.

Recent public activity

  1. story
  2. comment
    Comment #8761760

    Also working on pairs of consecutive fibonacci numbers (f_n, f_(n+1)) instead of the matrix [[f_(n+1) f_n] [f_n f_(n-1)]] makes this much simpler. def fib(n): def fib2(n): # return…

  3. comment
    Comment #3918421

    An easy way to do the second is to consider the sum and the sum of squares. This gets you a-b and a^2-b^2. Recall that the latter is (a-b)(a+b) and the answer follows immediately.

  4. comment
    Comment #3450957

    I'd add TopCoder and Codeforces to the list: http://community.topcoder.com/tc http://codeforces.com/ Both of these sites run a few algorithm competitions every month.

  5. comment
    Comment #3084581

    The introduction was alright, but I'm not sure that the hold buffer needs to be introduced straight away. Using the hold buffer can get complicated pretty quickly, and it isn't som…

  6. comment
    Comment #3065979

    tail can be done in ruby can be quite succinctly with the $ ruby -e'$> For the rest of the ruby one-liners in the page the author references, most can be done more easily with stan…