Skip to main content
added 283 characters in body
Source Link
matteo_c
  • 7k
  • 15
  • 28

Haskell, 72 6466 bytes

-86 bytes thanks to @xnor

import Data.List
f=mapf=(map snd=<<).sortOn(sum.map fst).mapM(zip[0..])

Attempt This Online!

Attempt This Online!

Haskell, 72 64 bytes

-8 bytes thanks to @xnor

import Data.List
f=map snd=<<.sortOn(sum.map fst).mapM(zip[0..])

Attempt This Online!

Haskell, 72 66 bytes

-6 bytes thanks to @xnor

import Data.List
f=(map snd=<<).sortOn(sum.map fst).mapM(zip[0..])

Attempt This Online!

Attempt This Online!

added 82 characters in body
Source Link
matteo_c
  • 7k
  • 15
  • 28

Haskell, 7272 64 bytes

-8 bytes thanks to @xnor

import Data.List
f=concatMap(mapf=map snd)snd=<<.sortOn(sum.map fst).mapM(zip[0..])

Attempt This Online!Attempt This Online!

Haskell, 72 bytes

import Data.List
f=concatMap(map snd).sortOn(sum.map fst).mapM(zip[0..])

Attempt This Online!

Haskell, 72 64 bytes

-8 bytes thanks to @xnor

import Data.List
f=map snd=<<.sortOn(sum.map fst).mapM(zip[0..])

Attempt This Online!

Source Link
matteo_c
  • 7k
  • 15
  • 28

Haskell, 72 bytes

import Data.List
f=concatMap(map snd).sortOn(sum.map fst).mapM(zip[0..])

Attempt This Online!