Given an array of integers `nums` and a target integer `target`, return the 0-based index of the first occurrence of `target` using linear search. If `target` is not found, return -1.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.