Revision history of "C Language Practice: Number Search - Binary Search"

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

  • curprev 17:15, 13 March 2022‎ Eric talk contribs‎ 1,290 bytes +1,290‎ Created page with "== Search for a Number - Binary Search == * Step 1: Define a number binary search function * Step 2: Get all the arguments needed in main <syntaxhighlight lang="c" line style="border: 1px dashed red;"> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int findnum(int totalnum, int numcheck, int numlist[totalnum]) { int i, place = totalnum / 2; for (i = 0; i <= totalnum; i++) { if (numlist[place] == numcheck) {..."