Help for this page

Select Code to Download


  1. or download this
    Input: Triangle = [ [1], [2,4], [6,4,9], [5,1,7,2] ]
    Output: 8
    ...
               6 [4] 9
              5 [1] 7 2
    
  2. or download this
    # PWC 100
    use strict;
    ...
    __DATA__
    [[1],[2,4],[6,4,9],[5,1,7,2]] 8
    [[9],[1,6],[7,8,2],[5,8,2,3]] 19