Image

Imagemadbassist wrote in Imagecpp 😡frustrated

Listens: Phish - "Harry Hood"

Can anyone provide me with a relatively simple binary search algorithm? I need to search an alphabetized array of names (with a score correpsonding to each name) for a user inputted name, and return the corresponding score for the name. A recursive function would be nice...I've tried a few things but I can't seem to translate the logic into code.