Should we compare char in words with different prefix when build graph?


  • 0
    L

    E.g.
    words = [
    "wrt",
    "wrf",
    "erx",
    "ett",
    "rftt"
    ]

    Here we can infer "t">"f" from "wrt" and "wrf", but can we infer "f" > "x" from "wrf" and "erx"?


Log in to reply
 

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