In a given start string, end string and a set of strings, find if there exists a
Question:
In a given start string, end string and a set of strings, find if there exists a path between the start string and end string via the set of strings.
A path exists if we can get from start string to end the string by changing
(no addition/removal) only one character at a time. The restriction is that the new string generated after changing one character has to be in the set.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Problems Solving In Data Structures And Algorithms Using C++
ISBN: 9789356273177
2nd Edition
Authors: Hemant Jain
Question Posted: