mirror of
https://github.com/20kaushik02/leetcode-gulag.git
synced 2026-01-25 07:34:05 +00:00
some more neetcode
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "soln.hpp"
|
||||
|
||||
int main() {
|
||||
int main()
|
||||
{
|
||||
string s = "({[[[]]]})";
|
||||
bool answer = true;
|
||||
Solution soln;
|
||||
|
||||
@@ -37,6 +37,7 @@ bool Solution::isValid(string s)
|
||||
return bstack.size() == 0;
|
||||
}
|
||||
|
||||
bool Solution::test(string s, bool answer) {
|
||||
bool Solution::test(string s, bool answer)
|
||||
{
|
||||
return isValid(s) == answer;
|
||||
}
|
||||
Reference in New Issue
Block a user