Jump to content

Text completion: Difference between revisions

m
C++ - reject empty word
(Added C++ solution)
m (C++ - reject empty word)
Line 77:
}
std::string word(argv[2]);
if (word.empty()) {
std::cerr << "Word must not be empty\n";
return EXIT_FAILURE;
}
constexpr size_t max_dist = 4;
std::vector<std::string> matches[max_dist + 1];
1,777

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.