Last updated 20 days ago
Future Improvement: Use the stack in C++/Java to solve this classic problem again.
The idea has been published on my CS1010 Notes.
Wah, this problem is sooo fimilar, it is from NUS!!! And it also has appeared in , serving as the hardest question.