Computer Science, asked by gurleen4723, 11 months ago

what is linear search and binary search in java??​

Answers

Answered by Anonymous
1

Answer:

Explanation:

Binary Search in Java. Binary search is used to search a key element from multiple elements. Binary search is faster than linear search. In case of binary search, array elements must be in ascending order. If you have unsorted array, you can sort the array using Arrays.sort(arr) method.

Similar questions