Bracket Matching*
Question
Solution
Future Improvement: Use the stack in C++/Java to solve this classic problem again.
Idea
Wah, this problem is sooo fimilar, it is from NUS!!! And it also has appeared in NUS CS1010 AY18/19 PE2, serving as the hardest question.
The idea has been published on my CS1010 Notes.
Code
Last updated