#include "linear_finder.h" LinearFinder::LinearFinder(const vector &word_list) : word_list_(word_list) {} vector LinearFinder::find_prefix(string_view search_term) const { vector matching_words; for (const auto ¤t_word : word_list_) { if (current_word.starts_with(search_term)) { matching_words.push_back(¤t_word); } } return matching_words; }