Skip to main content
deleted 323 characters in body
Source Link
emirps
  • 1.8k
  • 6
  • 15

Stax, 9 bytes9 5 bytes

ΘK♂▓b♪Q4⌠

Run and debug it

This is a packed Stax program, representing the following 11 byte version:And pure ASCII!

Stax, 11 bytes

c{|+}mc|mI@e

Run and debug itRun and debug it (with test cases)

Explanation

c{|+}mc|mI@ # takes an array of strings as input
 {|+}m      # map sum across all strings in the array
       |m   # get the minimum
      c  I e # get the index of the minimum in the array of sumsby
c       |+  @ # get the value at that index in the original array of stringssum

Stax, 9 bytes

ΘK♂▓b♪Q4⌠

Run and debug it

This is a packed Stax program, representing the following 11 byte version:

Stax, 11 bytes

c{|+}mc|mI@

Run and debug it

Explanation

c{|+}mc|mI@ # takes an array of strings as input
 {|+}m      # map sum across all strings in the array
       |m   # get the minimum
      c  I  # get the index of the minimum in the array of sums
c         @ # get the value at that index in the original array of strings

Stax, 9 5 bytes

And pure ASCII!

{|+}e

Run and debug it (with test cases)

Explanation

{  }e # minimum by
 |+   # sum
Source Link
emirps
  • 1.8k
  • 6
  • 15

Stax, 9 bytes

ΘK♂▓b♪Q4⌠

Run and debug it

This is a packed Stax program, representing the following 11 byte version:

Stax, 11 bytes

c{|+}mc|mI@

Run and debug it

Explanation

c{|+}mc|mI@ # takes an array of strings as input
 {|+}m      # map sum across all strings in the array
       |m   # get the minimum
      c  I  # get the index of the minimum in the array of sums
c         @ # get the value at that index in the original array of strings