What do you want to save?
Add Code snippet
New code examples
-
Java 2022-01-30 01:55:02
binary search program in java
// Java implementation of iterative Binary Search class BinarySearch { // Returns index of x if it is present in arr[], // else return -1 int binarySearch(int arr[], int x) { int l = 0, r = arr.length - 1; while (l <= r) { int m = l ... Add solution -
Python 2021-10-19 20:26:07
Linear Search
//Java implementation of Linear Search import java.util.Scanner; public class LinearSearch { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int[] a = {10,20,50,30,40}; int key=s... Add solution -
Other 2021-10-17 13:33:09
what is linear search
//Java implementation of Linear Search import java.util.Scanner; public class LinearSearch { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int[] a = {10,20,50,30,40}; int key=s... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5