8 lines
172 B
C++

#include <bits/stdc++.h>
using namespace std;
class Solution
{
public:
int search(vector<int> &nums, int target);
bool test(vector<int> &nums, int target, int answer);
};