The picture above is what comes to mind when I think about algorithms. A sea of letters, numbers, and symbols. But I will demonstrate a friendly intro algorithm that is easy to understand. Linear Search is a simple algorithm, but not efficient in which I will explain later. Linear Search in basic writing is: Start from the leftmost element of the array and one by one compare with your target with each element of the array. Then if the target matches with an element in the array, return the index. …


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store