You are given a string
sconsisting of lowercase English letters.The score of a string is the sum of the positions of its characters in the alphabet, where
'a' = 1,'b' = 2, …,'z' = 26.Determine whether there exists an index
isuch that the string can be split into two non-empty \substrings**s[0..i]ands[(i + 1)..(n - 1)]that have equal scores.Return
trueif such a split exists, otherwise returnfalse.
1 | class Solution { |