New answers tagged

2 votes

Sort by Largest Digit(s)

Vyxal 3, 6 bytes µᵛfG]Ṛ Try it Online! need two bytes to reverse the end result otherwise i might have a 4 byter lol
pacman256's user avatar
  • 3,300
0 votes

Sever-sort an array

Go, 172 bytes ...
bigyihsuan's user avatar
  • 8,978
0 votes

Sever-sort an array

Japt, 5 bytes ò< cw Try it ...
noodle man's user avatar
  • 6,121
0 votes

Sever-sort an array

Perl 5 -MList::Util=reduce -ap, 45 bytes $_=reduce{$a<$b&&(print$a,$")&&$b||"$b $a"}@F Try ...
Xcali's user avatar
  • 14.2k
0 votes

Sever-sort an array

JavaScript (Node.js), 54 bytes x=>x.map((t,i)=>z.splice(q=t<=x[i-1]?q:i,0,t),z=[])&&z Try it online! Recurseless win
l4m2's user avatar
  • 22.3k
1 vote

Sever-sort an array

Vyxal 3, 6 bytes ᵃ>ṁƒVf Try it Online! a weird quirk of "partition after truthy indices" means it matches lengths so it will never include the last ...
pacman256's user avatar
  • 3,300

Top 50 recent answers are included