Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Caffae's user avatar
  • 1
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" /** * ...
noggy's user avatar
  • 53