first thought
- same as bfs maze problem.
- build a map to record the distance of each word.
solution
|
|
problem
NPE
reason
in the return statement, remember the map may not contains the endWord
modification
check null in the return statement
|
|
solution
|
|
problem
NPE
reason
in the return statement, remember the map may not contains the endWord
modification
check null in the return statement
|
|