The Prince asked:
I have to write a code that code that has option of searching an array using binary search or sequential search and use a counter to track how long it takes for the search algorithm to find the name, but i don’t know how i would keep track of that part of the program.
I have to write a code that code that has option of searching an array using binary search or sequential search and use a counter to track how long it takes for the search algorithm to find the name, but i don’t know how i would keep track of that part of the program.