ASDV-Cpp/Assignments/MP2_CalebFontenot_clion/binarySearch.h

16 lines
501 B
C++

//
// 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);
std::tuple<int, int> linearSearch(std::vector<std::vector<int>> arr, int numToSearchFor);
int linearSearch(std::vector<int> arr, int numToSearchFor);
#endif //MP2_CALEBFONTENOT_CLION_BINARYSEARCH_H