BFS


  • 0
    N

    1
    Debug examples
    a. definition of distance
    b. beginword can be in dict
    c. endword may not be in dict at all.

    1. problem-solving skill
      In finding one-letter-diff word ,which is neighbor
      try not to iterate hash_table to delete elements. Think this way, why we need to iterate ? first may be to find something, second may be to update entry. We can make use of constant search ability of hash_table

Log in to reply
 

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