Top "Pascals-triangle" questions

Pascal's triangle - is a triangular array of binomial coefficients where the elements of the first row and column are equal to one, and all other elements are the sum of the previous element in the row and column.

Pascal's triangle positioning

I made a Java program that prints out a pascal triangle, however I can't figure out how to correctly position …

java arrays multidimensional-array pascals-triangle
why is there a SIGFPE?

for some reason, it used to work. but now i get a SIGFPE.....what's wrong? #include "usefunc.h" long factorial(…

c signals pascals-triangle sigfpe
Convert normal recursion to tail recursion

I was wondering if there is some general method to convert a "normal" recursion with foo(...) + foo(...) as the last …

scala recursion tail-recursion pascals-triangle
Code-golf: generate pascal's triangle

Generate a list of lists (or print, I don't mind) a Pascal's Triangle of size N with the least lines …

algorithm code-golf combinatorics discrete-mathematics pascals-triangle