8 lines
150 B
C++

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