New answers tagged

1

Vyxal a, 7 bytes µL;yṘ$" Try it Online! Outputs as a list of two lists of lines. The header and footer allow for multiline IO.


0

Julia 1.0, 41 bytes !s=sort(s,by=length)[∪(end:-2:1,1:end)] Try it online! input and output are vectors of strings end:-2:1 takes every second index, starting from the end 1:end is all indices ∪ (=union) removes duplicates


0

Julia 1.0, 41 bytes !l=@sync l.|>i->@async sleep(i)println(i) Try it online! @async adds the task to the machine's scheduler queue, and @sync waits for all @asyncs to finish


Top 50 recent answers are included