Ruby Test Case Issue?


  • 0
    W

    Input:
    "AACCTTGG"
    "AATTCCGG"
    ["AATTCCGG","AACCTGGG","AACCCCGG","AACCTACC"]
    Output:
    4
    Expected:
    -1

    Seeing as how the ending string is in the gene bank, shouldn't 4 be the expected output?


  • 0
    A

    Shouldn't everything in the path also be in the gene bank? Clearly, it's not, so I don't understand why 4 is the output.


  • 0
    L
    This post is deleted!

Log in to reply
 

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