Skip to content

Commit

Permalink
fixbug in chapBFS.tex section 1
Browse files Browse the repository at this point in the history
  • Loading branch information
liuluheng committed Sep 28, 2014
1 parent 60a44ba commit 7148d59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions C++/chapBFS.tex
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ \subsubsection{代码}

swap(c, new_word[i]);

if (dict.count(new_word) > 0 &&
if ((dict.count(new_word) > 0 || new_word == end) &&
!visited.count(new_word)) {
result.push_back(new_word);
visited.insert(new_word);
Expand Down Expand Up @@ -171,7 +171,7 @@ \subsubsection{代码}

swap(c, new_word[i]);

if ((dict.count(new_word) > 0|| new_word == end) &&
if ((dict.count(new_word) > 0 || new_word == end) &&
!visited.count(new_word)) {
result.insert(new_word);
}
Expand Down Expand Up @@ -586,4 +586,4 @@ \subsubsection{只用一个队列的写法}
//return 0;
}
}
\end{Codex}
\end{Codex}

0 comments on commit 7148d59

Please sign in to comment.