Linear Search - Basic Algorithms Fast (14)

preview_player
Показать описание
Linear search (also called sequential search) searches for a target from the beginning of a list. The index is incremented if the target is not found. This step would repeat. The search stops when the target is found, or when the index exceeds the length of the list, which means the target is not found.

0:52 - Case when the target is found
2:42 - Case when the target is not found

Playlist of my Algorithm walkthrough

Basic Python Fast

Playlist of my Python examples

Playlist of my Java course

Playlist of my Java examples

#linearsearch #algorithm #begincodingfast #algorithmvisualization
Рекомендации по теме