A fairly common task is to find an element in an array. Let’s say we have an array 1,5,8,10,16,20… 100 and we need to find the position of element 10 in it. Or even find out if there is such an element in the array. There are the following algorithms to solve this problem: Linear […]