Here is a link of a Problem.
As per the problem statement it is clear that beauty of a string is sum of its letters.
And From The beauty of each letter is an integer between 1 and 26, inclusive, and no two letters have the same beauty
According to that how can I assume the beauty of a letter.
How did they compute beauty of "ABbCcc" as 152?
I Do not need Solution of the Problem, I just need an explanation for the given output.
Any of Your help would be appreciated.
the beauty for letter c is 26, b is 25 and a is 24
total=24+25*2+26*3=152