You are given a string
s
. The score of a string is defined as the sum of the absolute difference between the ASCII values of adjacent characters.Return the score of
s
.
1 | class Solution { |
You are given a string
s
. The score of a string is defined as the sum of the absolute difference between the ASCII values of adjacent characters.Return the score of
s
.
1 | class Solution { |