We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e0e752 commit 9959dd2Copy full SHA for 9959dd2
C++/web-crawler.cpp
@@ -18,8 +18,7 @@ class Solution {
18
const auto& from_url = result[i];
19
const auto& name = hostname(from_url);
20
for (const auto& to_url: htmlParser.getUrls(from_url)) {
21
- if (!lookup.count(to_url) &&
22
- name == hostname(to_url)) {
+ if (!lookup.count(to_url) && name == hostname(to_url)) {
23
result.emplace_back(to_url);
24
lookup.emplace(to_url);
25
}
0 commit comments