Help for this page

Select Code to Download


  1. or download this
                   $L[$i-1][$j-1] ||= 0;
                   $L[$i][$j] = $L[$i-1][$j-1] + 1;
    
  2. or download this
                   if ($i && $j) {
                      $L[$i-1][$j-1] ||= 0;
    ...
                   } else {
                      $L[$i][$j] = 1;
                   }