filmov
tv
Learn Linear Search in Under 60 Seconds #shorts #programming #softwaredeveloper #algorithm

Показать описание
Hello devs, come learn the Linear Search algorithm which seems easy but can be a bit tricky. We iterate through our elements one by one and return the index when we find a match. If we finish the loop and we haven't found a match, return the flag -1 to let the users know.