Linear search
Easy๐ท๏ธ Searching๐ Algorithmic Thinking
๐งฉ The problem
Given SET LIST = [4, 8, 15, 16, 23, 42], TAKE a TARGET and DISPLAY its index, or -1 if it isn’t there.
Examples
Input: 15 โ 2Input: 99 โ -1
โ๏ธ Write your pseudocode
Press Run to watch it step by step, and Run tests to check it against every test case.