Regarding a test case

  • 0
    Input:	"a", "c", ["a","b","c"]
    Output:	1
    Expected:	2

    Why should the expected output be 2 here?

  • 0

    In my understand, I think for this problem, the least steps is 2, so if found, it is at least 2, the count should include the begin word and the end word.

Log in to reply

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