Bioinformatics/Global alignment: Difference between revisions

m
Slight improvement to code.
m (Reworded a comment.)
m (Slight improvement to code.)
Line 274:
 
std::unordered_set<std::string> shortest;
shortest.insertemplace(std::reduce(list.begin(), list.end(), std::string("")));
 
uint64_t shortest_length;
Line 289:
if ( candidate.length() < shortest_length ) {
shortest.clear();
shortest.insertemplace(candidate);
shortest_length = candidate.length();
} else if ( candidate.length() == shortest_length ) {
shortest.insertemplace(candidate);
}
}
871

edits