Leetcode 2135: Count Words Obtained After Adding a Letter
4 min readJan 12, 2022
--
In this Leetcode problem, we are asked to transform some words from an array of words to target words. Any word from the initial array can be used to be transformed in a target word using a specific transformation rule.
You are given two 0-indexed arrays of strings
startWords
andtargetWords
. Each string consists of lowercase English letters only.
For each string intargetWords
, check if it is possible to choose a string fromstartWords
and perform a conversion operation on it to be equal to that fromtargetWords
.
The conversion…