All Questions
2 questions
0
votes
1
answer
143
views
Odd bug for Find
I've been working of the find (problem set 3) for 2 weeks and I'm just stuck.
I already have the design etc worked out but there is a bug that I seem to be missing.
So the problem is that when I run ...
0
votes
2
answers
89
views
My binary sort function cannot find the needle in the haystack. Can anyone see the bug in this code?
I am testing by using ./generate 1000 50 | ./find 127. The needle should be found but isn't.
#include <stdio.h>
#include <cs50.h>
#include <string.h>
#include "helpers.h"
/**
* ...