Skip to content

Algorithmic quiz: check a 3-braces expression

23-Oct-08

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

14-May-08

Simple C++ quiz about class member pointer.

C++ quiz from the past

14-May-08

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