Jump to content

Word ladder: Difference between revisions

m
C++ bug fix
(Added C++ solution)
m (C++ bug fix)
Line 84:
return true;
}
auto i = poss.erase(std::remove_if(poss.begin(), poss.end(),
[&next](const std::string& str) {
return contains(next, str);
});,
if (i != poss.end());
poss.erase(i);
for (const auto& str : next) {
std::vector<std::string> temp(curr);
1,777

edits

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