Skip to main content
2 of 3
deleted 10 characters in body
Casey Chu
  • 1.8k
  • 13
  • 10

JavaScript 1.8, 93 chars

function c(x)!+x.replace(/([a-z])\1*/g,function(m)m.length+m.charCodeAt(0)-96-a-a++,a=1)*a+15

I dare you to make sense of it :)

Casey Chu
  • 1.8k
  • 13
  • 10