Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
        ? $d[$r][$c] + min(path($r+1, $c), path($r+1, $c+1))
        : $d[$r][$c]
      }