2024-03-07 18:40:11 -06:00
|
|
|
//
|
|
|
|
// Created by caleb on 3/7/24.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef MP2_CALEBFONTENOT_CLION_BINARYSEARCH_H
|
|
|
|
#define MP2_CALEBFONTENOT_CLION_BINARYSEARCH_H
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
std::tuple<int, int> binarySearch(std::vector<std::vector<int>> arr, int numToSearchFor);
|
|
|
|
int binarySearch(std::vector<int> arr, int numToSearchFor);
|
2024-03-11 08:50:33 -05:00
|
|
|
std::tuple<int, int> linearSearch(std::vector<std::vector<int>> arr, int numToSearchFor);
|
|
|
|
int linearSearch(std::vector<int> arr, int numToSearchFor);
|
2024-03-07 18:40:11 -06:00
|
|
|
|
|
|
|
#endif //MP2_CALEBFONTENOT_CLION_BINARYSEARCH_H
|