Skip to main content
Commonmark migration
Source Link

#PHP, 85 84 bytes

PHP, 85 84 bytes

for(;++$d<9||++$a<9*$d=1;sort($r))for($x=$y=$a+1;10>$y+=$d;)$r[]=$x.=$y;print_r($r);

try it online.

sorting cost 17 bytes. This version prints the results ordered differently:

while(++$d<9||++$a<9*$d=1)for($x=$y=$a+1;10>$y+=$d;)echo"
",$x.=$y;

#PHP, 85 84 bytes

for(;++$d<9||++$a<9*$d=1;sort($r))for($x=$y=$a+1;10>$y+=$d;)$r[]=$x.=$y;print_r($r);

try it online.

sorting cost 17 bytes. This version prints the results ordered differently:

while(++$d<9||++$a<9*$d=1)for($x=$y=$a+1;10>$y+=$d;)echo"
",$x.=$y;

PHP, 85 84 bytes

for(;++$d<9||++$a<9*$d=1;sort($r))for($x=$y=$a+1;10>$y+=$d;)$r[]=$x.=$y;print_r($r);

try it online.

sorting cost 17 bytes. This version prints the results ordered differently:

while(++$d<9||++$a<9*$d=1)for($x=$y=$a+1;10>$y+=$d;)echo"
",$x.=$y;
sort in the loop head saves one byte
Source Link
Titus
  • 14.8k
  • 1
  • 24
  • 41

#PHP, 8585 84 bytes

whilefor(++$d<9||++$a<9*$d=1;++$d<9||++$a<9*$d=1;sort($r))for($x=$y=$a+1;10>$y+=$d;)$r[]=$x.=$y;sort($r);print_r=$y;print_r($r);

try it onlinetry it online.

sorting cost 1817 bytes. This version prints the results in a different orderordered differently:

while(++$d<9||++$a<9*$d=1)for($x=$y=$a+1;10>$y+=$d;)echo"\n"echo"
",$x.=$y;

#PHP, 85 bytes

while(++$d<9||++$a<9*$d=1)for($x=$y=$a+1;10>$y+=$d;)$r[]=$x.=$y;sort($r);print_r($r);

try it online.

sorting cost 18 bytes. This version prints the results in a different order:

while(++$d<9||++$a<9*$d=1)for($x=$y=$a+1;10>$y+=$d;)echo"\n",$x.=$y;

#PHP, 85 84 bytes

for(;++$d<9||++$a<9*$d=1;sort($r))for($x=$y=$a+1;10>$y+=$d;)$r[]=$x.=$y;print_r($r);

try it online.

sorting cost 17 bytes. This version prints the results ordered differently:

while(++$d<9||++$a<9*$d=1)for($x=$y=$a+1;10>$y+=$d;)echo"
",$x.=$y;
Source Link
Titus
  • 14.8k
  • 1
  • 24
  • 41

#PHP, 85 bytes

while(++$d<9||++$a<9*$d=1)for($x=$y=$a+1;10>$y+=$d;)$r[]=$x.=$y;sort($r);print_r($r);

try it online.

sorting cost 18 bytes. This version prints the results in a different order:

while(++$d<9||++$a<9*$d=1)for($x=$y=$a+1;10>$y+=$d;)echo"\n",$x.=$y;