Questions
Read the code, predict what happens, then see why. Hand-written questions on C++, Rust, and the systems underneath them.
- Factory function returning a raw Shape pointerEasy
- Replaying a command from a global undo stackHard
- A colleague returned by valueHard
- A singleton destructor that uses another singletonHard
- Bridge constructed with an inline renderer argumentMedium
- Chain of Responsibility wired into a cycleHard
- Decorator chain invoked through base and derived pointersHard
- A hand-rolled double-checked-locking singletonHard
- PImpl with a compiler-generated destructorMedium
- Flyweight factory backed by std::unordered_mapHard
- Object pool with a reference held past releaseHard
- Adapter stored in a std::vector of the target typeHard
- Command queue taking ownership of a documentMedium
- Singleton accessor defined in a shared headerHard
- Appending to a playlist mid-traversalMedium
- Template Method run from the base constructorHard
- A second class added to a CRTP printing mixinMedium
- Two Meyer's singletons whose constructors call each otherHard
- Null Object logger used in place of a null checkMedium
- State object that triggers its own transitionHard
1–20 of 44
Page 1 of 3