Skip to main content
Saved a byte
Source Link
The Thonnu
  • 18.3k
  • 3
  • 16
  • 74

Vyxal, 55 4 bytes

C∑)ṡh‡C∑P

Try it Online!Try it Online!

-1 thanks to @mathcat

Explanation

‡C∑P  # Implicit input
‡  P  # Minimum by:
 C    #  ASCII values
  ∑   #  Sum
      # Implicit output

Old:

C∑)ṡh # Implicit input
  )ṡ  # Sort by:
C     #  ASCII values
 ∑    #  Sum
    h # First item
      # Implicit output 

Vyxal, 5 bytes

C∑)ṡh

Try it Online!

Explanation

C∑)ṡh # Implicit input
  )ṡ  # Sort by:
C     #  ASCII values
 ∑    #  Sum
    h # First item
      # Implicit output 

Vyxal, 5 4 bytes

‡C∑P

Try it Online!

-1 thanks to @mathcat

Explanation

‡C∑P  # Implicit input
‡  P  # Minimum by:
 C    #  ASCII values
  ∑   #  Sum
      # Implicit output

Old:

C∑)ṡh # Implicit input
  )ṡ  # Sort by:
C     #  ASCII values
 ∑    #  Sum
    h # First item
      # Implicit output 
Source Link
The Thonnu
  • 18.3k
  • 3
  • 16
  • 74

Vyxal, 5 bytes

C∑)ṡh

Try it Online!

Explanation

C∑)ṡh # Implicit input
  )ṡ  # Sort by:
C     #  ASCII values
 ∑    #  Sum
    h # First item
      # Implicit output