Solving Pascals Triangle in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

Given a non-negative integer numRows, generate the first numRows of Pascal's triangle.

Note: In Pascal's triangle, each number is the sum of the two numbers directly above it.


Input: 5

See the full details of the problem Pascals Triangle at LeetCode

Originally posted at: