8 lines
170 B
C++

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