All Questions
Tagged with binary-search check50
5 questions
0
votes
1
answer
55
views
pset3 binary search , shows errors in check50
i don't understand acc. to the algorithm it should work correctly , but it doesn't
0
votes
1
answer
101
views
pset3 binary search , problems with check50
i have tried a lot but cannot find the meaning of the last two errors of check50 please help
0
votes
1
answer
81
views
Pset3 recursive binary search function - check50 gives me four :( and I don't know why
I would be really grateful if someone could offer me a hint as to where I'm going wrong with this - I've been stuck for a couple of days now. When I work through the code step by step on paper it ...
0
votes
1
answer
148
views
check50 fails to compile helpers.c - throws implicit function declaration error
I put my recursive binary search function prototype inside helpers.h file, and the function definition inside helpers.c file. (search calls binarysearch)
This decision caused compilation failure of ...
0
votes
1
answer
1k
views
pset3. binary search \ expected an exit code of 0, not 1
First, thanks for helping me on this!
My search function work with the tests:
./generate 1000 50 | ./find 127 -> "Found needle in haystack!"
./generate 1000 50 | ./find 128 -> "Didn't find needle in ...