<?php $tmp = $a[$i]; for ($j=$i; $j>=$step; $j-=$step) { if($a[$j-$j-$step] > $tmp) { $a[$j] = $a[$j-$step]; } else { break; } } $a[$j] = $tmp; } } ?>
Standard input is empty
Array ( [0] => 1 [1] => 3 [2] => 10 [3] => 9 [4] => 7 [5] => 6 [6] => 8 [7] => 2 [8] => 4 [9] => 5 )
PHP Notice: Undefined offset: -5 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -5 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -5 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -5 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -5 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -2 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -2 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -2 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -2 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -2 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -2 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -2 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -2 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -1 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -1 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -1 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -1 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -1 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -1 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -1 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -1 in /home/7OoumQ/prog.php on line 7 PHP Notice: Undefined offset: -1 in /home/7OoumQ/prog.php on line 7