Help for this page

Select Code to Download


  1. or download this
      substr( $q, 0, $k ) = reverse substr( $q, 0, $k );
    
  2. or download this
      $q = reverse(substr($q, 0, $k)) . substr($q, $k);
    
  3. or download this
    sub fannkuch {
        use bytes;    # This makes it fractionally faster
    ...
        } while $index--;
        $maxflips;  # faster than an explicit return
    }