test case confusing


  • 0
    J

    I can't understand the case that when startword is included in the dict. As it says startword is not a transformed word, which means it should not in the dict, and at that case the result should be 0, and the second case follows this, however, the first case I listed below expect 2. I'm totally lost.
    "hot"
    "dog"
    ["hot","dog"]
    expect is 2
    however,
    "a"
    "c"
    ["a","b","c"]
    expected is 0.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.