Extremely confusing! How can I have a solution for these test cases?!


  • 0
    O

    One test case is:
    "hot"
    "dog"
    ["hot", "dog"]

    Another one test case is:
    "talk"
    "tail"
    ["talk","tons","fall","tail","gale","hall","negs"]

    How can I get a solution out of it? I am so confused about the test inputs.


  • 0
    O

    The requirement said:

    • Only one letter can be changed at a time
    • Each intermediate word must exist in the word list

    Why there are test cases like these above?
    @contributors


  • 0

    @ofLucas Two issues here:

    • you should not @ all contributors until you have very serious issues about the OJ
    • the test cases you mentioned are unsolvable and so the result should be [], there should be some corner cases as you should have known.

  • 0
    O

    @LHearen
    Than you for your reply.

    I thought contributors are people who developed this question and all the test cases.

    I thought all the test cases should have at least one solution and I didn't know what to do when there's a no-solution case.

    Thank you now I know what to do.


  • 0

    @ofLucas Unless the problem clearly points it out that there will be at least one solvable solution, otherwise you are the one who should take care of it. Good luck and enjoy yourself.


Log in to reply
 

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