Skip to main content
deleted 9 characters in body
Source Link
Jörg Hülsermann
  • 13.3k
  • 3
  • 15
  • 36

PHP, 134127 Bytes

for($l=$r=$l=ord($r=($s=$argn)[0];$s[++$i];$l=$s[$i][0]){;$x=ord($s[++$i]);$l=$x)$r.=str_pad("",($a=abs($n=ord($l)$n=$l-ord($s[$i])$x))<14?$a:26-$a,"><"[$n>0^$a>13])."*";}echo$r;"*";echo$r;

TestcasesTestcases

PHP, 139137 Bytes

for($l=$r=($s=$argn)[0];$s[++$i];$l=$s[$i]){$r.=str_pad("",$d=min($a=abs(ord($l)-ord($s[$i])),$b=26-$a),"><"[$d<$b^$l<$s[$i]])."*";}echo$r;"*";echo$r;

Testcases

PHP, 134 Bytes

for($l=$r=($s=$argn)[0];$s[++$i];$l=$s[$i]){$r.=str_pad("",($a=abs($n=ord($l)-ord($s[$i])))<14?$a:26-$a,"><"[$n>0^$a>13])."*";}echo$r;

Testcases

PHP, 139 Bytes

for($l=$r=($s=$argn)[0];$s[++$i];$l=$s[$i]){$r.=str_pad("",$d=min($a=abs(ord($l)-ord($s[$i])),$b=26-$a),"><"[$d<$b^$l<$s[$i]])."*";}echo$r;

Testcases

PHP, 127 Bytes

for($l=ord($r=($s=$argn)[0]);$x=ord($s[++$i]);$l=$x)$r.=str_pad("",($a=abs($n=$l-$x))<14?$a:26-$a,"><"[$n>0^$a>13])."*";echo$r;

Testcases

PHP, 137 Bytes

for($l=$r=($s=$argn)[0];$s[++$i];$l=$s[$i])$r.=str_pad("",$d=min($a=abs(ord($l)-ord($s[$i])),$b=26-$a),"><"[$d<$b^$l<$s[$i]])."*";echo$r;

Testcases

added 286 characters in body
Source Link
Jörg Hülsermann
  • 13.3k
  • 3
  • 15
  • 36

PHP, 139134 Bytes

for($l=$r=($s=$argn)[0];$s[++$i];$l=$s[$i]){$r.=str_pad("",($a=abs($n=ord($l)-ord($s[$i])))<14?$a:26-$a,"><"[$n>0^$a>13])."*";}echo$r;

Testcases

PHP, 139 Bytes

for($l=$r=($s=$argn)[0];$s[++$i];$l=$s[$i]){$r.=str_pad("",$d=min($a=abs(ord($l)-ord($s[$i])),$b=26-$a),"><"[$d<$b^$l<$s[$i]])."*";}echo$r;

Testcases

PHP, 139 Bytes

for($l=$r=($s=$argn)[0];$s[++$i];$l=$s[$i]){$r.=str_pad("",$d=min($a=abs(ord($l)-ord($s[$i])),$b=26-$a),"><"[$d<$b^$l<$s[$i]])."*";}echo$r;

Testcases

PHP, 134 Bytes

for($l=$r=($s=$argn)[0];$s[++$i];$l=$s[$i]){$r.=str_pad("",($a=abs($n=ord($l)-ord($s[$i])))<14?$a:26-$a,"><"[$n>0^$a>13])."*";}echo$r;

Testcases

PHP, 139 Bytes

for($l=$r=($s=$argn)[0];$s[++$i];$l=$s[$i]){$r.=str_pad("",$d=min($a=abs(ord($l)-ord($s[$i])),$b=26-$a),"><"[$d<$b^$l<$s[$i]])."*";}echo$r;

Testcases

added 1 character in body
Source Link
Jörg Hülsermann
  • 13.3k
  • 3
  • 15
  • 36

PHP, 138139 Bytes

for($l=$r=($s=$argn)[0];$s[++$i];$l=$s[$i]){$r.=str_pad("",$d=min($a=abs(ord($l)-ord($s[$i])),$b=26-$a),"><"[$d<$b^$l<$s[$i]])."*";}echo$r;

Testcases

PHP, 138 Bytes

for($l=$r=($s=$argn)[0];$s[++$i];$l=$s[$i]){$r.=str_pad("",$d=min($a=abs(ord($l)-ord($s[$i]))$b=26-$a),"><"[$d<$b^$l<$s[$i]])."*";}echo$r;

Testcases

PHP, 139 Bytes

for($l=$r=($s=$argn)[0];$s[++$i];$l=$s[$i]){$r.=str_pad("",$d=min($a=abs(ord($l)-ord($s[$i])),$b=26-$a),"><"[$d<$b^$l<$s[$i]])."*";}echo$r;

Testcases

deleted 3 characters in body
Source Link
Jörg Hülsermann
  • 13.3k
  • 3
  • 15
  • 36
Loading
deleted 3 characters in body
Source Link
Jörg Hülsermann
  • 13.3k
  • 3
  • 15
  • 36
Loading
Source Link
Jörg Hülsermann
  • 13.3k
  • 3
  • 15
  • 36
Loading