8 lines
160 B
C++

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