Questions tagged [linearsearchpset3]
The linearsearchpset3 tag has no usage guidance.
3
questions
0
votes
1
answer
5
views
Linear search function compiles but doesn't create a change in output in original find function?
I am trying to test the find function in problem set 3. To get started, I wanted to use a linear search function:
{
// TODO: implement a searching algorithm
for (int value = 0; value < n; value++)
...
0
votes
2
answers
53
views
I have written a linear searh algorithm. How do I test it to see that it works?
This is my linear search code. How do I test it to see if it works?
/**
* helpers.c
*
* Computer Science 50
* Problem Set 3
*
* Helper functions for Problem Set 3.
*/
#include <cs50.h>
...
0
votes
1
answer
51
views
linearsearch in helpers.c pset3
/**
* helpers.c
*
* Computer Science 50
* Problem Set 3
*
* Helper functions for Problem Set 3.
*/
#include <cs50.h>
#include "helpers.h"
/**
* Returns true if value is in array of n ...