Sequential search is a method that checks each element of a list one by one to see if it matches a target key. The search starts at the first element and increments the index i until either the key is found and matched or the end of the list is reached without a match, indicating the key is not in the list.
Sequential search is a method that checks each element of a list one by one to see if it matches a target key. The search starts at the first element and increments the index i until either the key is found and matched or the end of the list is reached without a match, indicating the key is not in the list.