Beta

Word Transformer

Description
Loading description...
Arrays
Strings
  • Please sign in or sign up to leave a comment.
  • mxhagen Avatar

    Tests expect a specific (shortest I believe?) sequence, while the description implies any valid transformation goes:

    The task is to find a sequence of transformations

    A valid transformation sequence from "hit" to "cog" can be: ...

  • Voile Avatar

    Example tests contain a invalid expected result:

            assert_eq!(
                word_transformer("hello", "world", &["hella", "hollo", "hallo", "hullo", "wello", "werld", "world"]),
                vec!["hello", "hallo", "hollo", "hullo", "wello", "werld", "world"]
            );
    

    The actual tests are fine, so it's probably just example tests that are outdated.