I want to build a spell checker using binary search.
Can anyone guide me how to do the binary search on strings.
I want to build a spell checker using binary search.
Can anyone guide me how to do the binary search on strings.
Code:std::vector<std::string> list_of_strings; // fill and sort list std::binary_search(list_of_strings.begin(), list_of_strings.end(), string_to_search_for);