9 lines
159 B
C++

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