package array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Created by gouthamvidyapradhan on 25/03/2017.
*
* Given an index k, return the kth row of the Pascal's triangle.
For example, given k = 3,
Return [1,3,3,1].
Note:
Could you optimize your algorithm to use only O(k) extra space?
*/
public class PascalsTriangle
{
public static void main(String[] args) throws Exception
{
System.out.println(new PascalsTriangle().getRow(3));
}
public List