Questions tagged [linearsearchpset3]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
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
2answers
42 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
1answer
47 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 ...