We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I made an assumption early one that proved to be a bad one, but from the description of the question and the sample test cases, I assumed that we only had to verify nested balanced expressions, not balanced expressions that were side-by-side.
For example, it was only obvious we had to test for situations like '()' and '(({{[[]]}}))', not '{()}'. Can we update the question to specify this? Or am I the only one that made this mistake?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Stacks: Balanced Brackets
You are viewing a single comment's thread. Return to all comments →
I made an assumption early one that proved to be a bad one, but from the description of the question and the sample test cases, I assumed that we only had to verify nested balanced expressions, not balanced expressions that were side-by-side.
For example, it was only obvious we had to test for situations like '()' and '(({{[[]]}}))', not '{()}'. Can we update the question to specify this? Or am I the only one that made this mistake?