Linear Search | Explained in Python

Given an array, arr of n integers, and an integer element x, find whether element x is present in the array. Return the index of the first occurrence of x in the array, or -1 if it doesn’t exist. Here’s the [Problem Link] to begin with. 1. What does the question says? This question is asking us to find the position (0-based … Continue reading Linear Search | Explained in Python