LeetCode --- 1880. Check if Word Equals Summation of Two Words 解题报告

The letter value of a letter is its position in the alphabet starting from 0 (i.e. 'a' -> 0'b' -> 1'c' -> 2, etc.).

The numerical value of some string of lowercase English letters s is the concatenation of the letter values of each letter in s, which is then converted into an integer.

  • For example, if s = "acb", we concatenate each letter's letter value, resulting in "021". After converting it, we get 21.

You are given three strings firstWordsecondWord, and targetWord, each consisting of lowercase English letters 'a' through 'j' inclusive.

Return true if the 

你可能感兴趣的:(Python,算法,LeetCode,leetcode,算法,python,数据结构,面试)