some more neetcode

This commit is contained in:
2023-10-20 20:58:44 -07:00
parent 42c44952c5
commit df57a62275
8 changed files with 97 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
#include "soln.hpp"
int main() {
int main()
{
string s = "({[[[]]]})";
bool answer = true;
Solution soln;

View File

@@ -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;
}