2022-11-24 08:44:36 +00:00
|
|
|
#ifndef S0704_BINARY_SEARCH_HPP
|
|
|
|
#define S0704_BINARY_SEARCH_HPP
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
2022-11-30 10:20:36 +00:00
|
|
|
class S0704 {
|
2022-11-24 08:44:36 +00:00
|
|
|
public:
|
2022-11-30 10:20:36 +00:00
|
|
|
int binSearch1(vector<int>& nums, int target);
|
|
|
|
int binSearch2(vector<int>& nums, int target);
|
2022-11-24 08:44:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|