One of the possible solutions on Leetcode problem of determining whether or not the parentheses are valid using stack in C++. Of course there are other ways but this is kind of problems we dealth in university on automata course, so stack is the way to go when analyzing expressions. I believe this is what Sorting station algorithm was.
=====================================
SUBSCRIBE FOR MORE: http://goo.gl/bMexAI
=====================================