+ 1

How to write a function using a binary search to locate a word in vector?

lab question 2

3rd May 2018, 6:26 PM
Kenneth
5 Respostas
+ 4
While you're waiting for an answer from the community, have you seen this? https://www.sololearn.com/learn/664/?ref=app
3rd May 2018, 6:38 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
In C++ i dont know yet. But i think, locate a word in vector is more simplest than using a binary search... That can be some thing like: WORD.split()... Or, vector = [] For i in length(word) : vector.append(word[i]) . . (Some thing like that)
3rd May 2018, 7:43 PM
sidi med
sidi med - avatar
+ 1
thanks
3rd May 2018, 7:47 PM
Kenneth
0
What is the language you want to use?
3rd May 2018, 7:25 PM
sidi med
sidi med - avatar
0
C++
3rd May 2018, 7:32 PM
Kenneth