In our daily life we often search thing like books, movie etc. Similarly in computer science searching is an important area. There are several search techniques some are easy to understand today I will discuss an easy search technique called linear search which complexity is O (n).
Suppose we have an array of String which contains name of 5 chocolates now we want to do some search