Leetcode 2135: Count Words Obtained After Adding a Letter
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
targetWords. Each string consists of lowercase English letters only.
For each string in
targetWords, check if it is possible to choose a string from
startWordsand perform a conversion operation on it to be equal to that from