Help for this page

Select Code to Download


  1. or download this
    # O(n^2)
    for my $i (0..$#a-1) {
    ...
                if ($a[$_+1] < $a[$_]);
      }
    }
    
  2. or download this
    # O(n)
    my $truestatus;
    ...
            last
        }
    }