Skip to main content
Golfed 3 bytes
Source Link
DLosc
  • 39.2k
  • 5
  • 83
  • 141

Brachylog, 1212 9 bytes

-3 bytes thanks to Fatalize

{;96-}ᵐ+100₉₆ᵐ+100

Takes input as a string of lowercase letters. Try it online!Try it online!

Explanation

             Convert input string to a list of ASCII codes
 {    }ᵐ      To that list, map this predicate:
  ;96-₉₆        Subtract 96 Pairfrom each charcode with 96
     -         and compute the difference
        +     Sum the resulting list of numbers 1-26
         100  Succeed if the sum is 100, fail otherwise

Brachylog, 12 bytes

{;96-}ᵐ+100

Takes input as a string of lowercase letters. Try it online!

Explanation

             Convert input string to a list of ASCII codes
 {    }ᵐ      To that list, map this predicate:
  ;96          Pair each charcode with 96
     -         and compute the difference
        +     Sum the resulting list of numbers 1-26
         100  Succeed if the sum is 100, fail otherwise

Brachylog, 12 9 bytes

-3 bytes thanks to Fatalize

ạ-₉₆ᵐ+100

Takes input as a string of lowercase letters. Try it online!

Explanation

ạ          Convert input string to a list of ASCII codes
    ᵐ      To that list, map this predicate:
 -₉₆        Subtract 96 from each charcode
     +     Sum the resulting list of numbers 1-26
      100  Succeed if the sum is 100, fail otherwise
Source Link
DLosc
  • 39.2k
  • 5
  • 83
  • 141

Brachylog, 12 bytes

ạ{;96-}ᵐ+100

Takes input as a string of lowercase letters. Try it online!

Explanation

ạ             Convert input string to a list of ASCII codes
 {    }ᵐ      To that list, map this predicate:
  ;96          Pair each charcode with 96
     -         and compute the difference
        +     Sum the resulting list of numbers 1-26
         100  Succeed if the sum is 100, fail otherwise