Skip to content

Algorithmic quiz: check a 3-braces expression


I just won a bet for $10 by solving a quiz:
Check the correctness of a braces, brackets and parentheses sequence. The solution should be of linear complexity (to say more, it’s 1-pass).
It’s basically solved in 15 lines, all others being auxiliary. Can you reproduce the algorithm?

Another C++ quiz, simpler


Simple C++ quiz about class member pointer.

C++ quiz from the past


C++ quiz about streams, dynamic_cast, temporary values, default type conversions and more…