Project Euler #148: Exploring Pascal's triangle.

  • + 0 comments

    To beat all test cases I had to convert row and column values to base 7 and count all triangles in Sierpinski triangle in every cell. My algorithm has 0(log7)^3 complexity. I had wrong answers due to special case for row or column = 0. So keep in mind this special case.