I want to build a spell checker using binary search.
Can anyone guide me how to do the binary search on strings.
This is a discussion on Binary search on strings within the C++ Programming forums, part of the General Programming Boards category; I want to build a spell checker using binary search. Can anyone guide me how to do the binary search ...
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);