News for hackers. Stuff that matters.
Re:Ask HN: Am I being too hard on the developers I interview? by dragos2 on Wednesday January 23, 2013 @05:08PM (#5105610)
I don't understand why are people having troubles interpreting the text.

P(i,j) = the number at i-th row and j-th column, could be defined as:

P(i, j) = P(i-1, j-1) + P(i-1, j+1) - for the indented pyramid diagram

or

P(i, j) = P(i-1, j-1) + P(i-1, j) - for the non indented triangle (the way it would appear in a basic 2D data structure, eg: int P[][]).

Also, you will have to check if P(i-1,j-1) exists.

There are no comments on this comment yet.