Skip to content

Commit

Permalink
Atualizaçã do PDF.
Browse files Browse the repository at this point in the history
  • Loading branch information
edsomjr committed Dec 20, 2024
1 parent 59b0ca5 commit f56ea42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified Strings/slides/busca/busca.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion Strings/slides/busca/codes/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ int occurrences(const string& P, const string& S)
int n = S.size();
int occ = 0;

for (int i = 0; i <= n - m + 1; ++i)
for (int i = 0; i < n - m + 1; ++i)
occ += (P == S.substr(i, m) ? 1 : 0);

return occ;
Expand Down

0 comments on commit f56ea42

Please sign in to comment.