Skip to main content

Questions tagged [linearsearchpset3]

Filter by
Sorted by
Tagged with
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++) ...
Haim's user avatar
  • 185
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> ...
stephen Ong's user avatar
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 ...
Samir-B's user avatar
  • 11