about | help | code help+videos | done | prefs |
Write a method that accepts an integer array that represents a particular row in Pascal's Triangle, then returns the next row down in Pascal's Triangle. dec15_2016_SLHL_nextRowPascalsTriangle([1, 14, 91, 364, 1001, 2002, 3003, 3432, 3003, 2002, 1001, 364, 91, 14, 1]) → [1, 15, 105, 455, 1365, 3003, 5005, 6435, 6435, 5005, 3003, 1365, 455, 105, 15, 1] dec15_2016_SLHL_nextRowPascalsTriangle([1, 2, 1]) → [1, 3, 3, 1] dec15_2016_SLHL_nextRowPascalsTriangle([1, 5, 10, 10, 5, 1]) → [1, 6, 15, 20, 15, 6, 1] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 250
Copyright Nick Parlante 2017 - privacy