Java Engineering Programs Blog

Binary search in java

Binary Search in c

binary search in c Sorted array #include <stdio.h> #include <conio.h> void main( ) { int arr[10] = { 1, 2, 3, 9, 11, 13, 17, 25, 57, 90 } ; int mid, lower =...

Linear search in java

linear search in c

Linear Search in c unsorted array #include <stdio.h> #include <conio.h> void main( ) { int arr[10] = { 11, 2, 9, 13, 57, 25, 17, 1, 90, 3 } ; int i, num ;...