All Questions
4 questions
0
votes
2
answers
163
views
Binary Search for helpers.c
so as the title suggests I am having some trouble with my implementation of binary search. So based on the logic shown in the lecture, I think my implementation is fine, indeed it works for the cases ...
0
votes
2
answers
67
views
binary search pset 3 pointer to integer error
I am trying my hands on binary search. I get those pointer to integer errors :(
Can sonmeone more experience give me a hand ?
bool search(int value, int values[], int n)
{
int first=0;
int last=n-1;
...
0
votes
1
answer
167
views
Pset3 - Function returns both true and false in while loop
In my code, after successfully searching the element, the function is returning true and false both to the main function. I have questions as follows ->
1 - Why the sm() function is returning true ...
0
votes
1
answer
525
views
pset 3 "search": expected an exit code of 0, not 1
I'm at the very end of the "find, sort, search" section of pset3, but when using check50, I get "expected an exit code of 0, not 1". This only happens on the checks where check50 is looking for a ...