Test Case problem


  • 0
    K
    "AAAAAAAA"
    "CCCCCCCC"
    ["AAAAAAAA","AAAAAAAC","AAAAAACC","AAAAACCC","AAAACCCC","AACACCCC","ACCACCCC","ACCCCCCC","CCCCCCCA"]
    

    How the output is 8. The valid output should be -1. As there is no way to reach CCCCCCCC. The cloes we can reach is ACCCCCCC.


Log in to reply
 

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