Why this is wrong answer?


  • 0
    G

    I donot understand why this is WA?

    this is the test data:["hos","boo","nay","deb","wow","bop","bob","brr","hey","rye","eve","elf","pup","bum","iva","lyx","yap","ugh","hem","rod","aha","nam","gap","yea","doc","pen","job","dis","max","oho","jed","lye","ram","pup","qua","ugh","mir","nap","deb","hog","let","gym","bye","lon","aft","eel","sol","jab"]

    this is my answer:
    [["deb","deb"],["aha"],["jab"],["jed"],["eel"],["elf"],["hem"],["nam"],["bob","boo"],["doc"],["oho"],["hog"],["job"],["lon"],["gap"],["nap"],["pen"],["bop"],["brr"],["ram"],["mir"],["rod"],["dis"],["hos"],["sol"],["aft"],["let"],["ugh","ugh"],["bum"],["pup","pup"],["qua"],["eve"],["iva"],["wow"],["max"],["yea"],["bye"],["hey"],["lye"],["gym"],["nay"],["yap"],["rye"],["lyx"]]

    ths is expected answer:
    [["sol"],["wow"],["gap"],["hem"],["yap"],["bum"],["ugh","ugh"],["aha"],["jab"],["eve"],["bop"],["lyx"],["jed"],["iva"],["rod"],["boo"],["brr"],["hog"],["nay"],["mir"],["deb","deb"],["aft"],["dis"],["yea"],["hos"],["rye"],["hey"],["doc"],["bob"],["eel"],["pen"],["job"],["max"],["oho"],["lye"],["ram"],["nap"],["elf"],["qua"],["pup","pup"],["let"],["gym"],["nam"],["bye"],["lon"]]


Log in to reply
 

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