All Questions
Tagged with find generate.c
3 questions
0
votes
1
answer
32
views
link generate.c and helper.c
please help me understand what I'm missing... why I don't have any random numbers when I enter : ./generate 10 | ./find 10 (well that the same result I have when I entered ./generate 1000 50 | ./find ...
0
votes
1
answer
39
views
How does exactly generate.c deliver its output to find.c?
" For instance, the command below passes 1,000 pseudorandom numbers to find, which then searches those values for 42."
./generate 1000 | ./find 42
How come generate.c passes pseudo-random numbers to ...
0
votes
1
answer
59
views
please help me with this binary search
for some reason this binary search code keeps returning true, when providing the haystack from generate.c, even if the "needle" isnt there. when manually inputing the haystack, the code runs perfectly....