Validate a Word Transformation Sequence

Given a sequence of equal-length lowercase English words, determine whether it is a valid word-transformation sequence.

A sequence is valid if and only if:

  1. It contains at least one word.
  2. Every...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: