You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Linear Search is one of the easiest searching algorithm. The main aim of a searching algorithm is to search for a desired element in the whole array. Linear Search sequentially searches for an element in an array.
3
+
#algorithm
4
+
#In Linear Search, we start from the 0th index of the array, we compare each element with the key (desired element).
5
+
#If the key is same as the element of array ,we return the index of that element.
6
+
#If the key does not match any element then ,we return -1.
0 commit comments