All challenges
Code AnalysisBeginner 60s

Command with undo

class Transfer { execute() { from.bal -= amt; to.bal += amt; } } // No undo() provided. Which capability is missing that the Command pattern is meant to enable?

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle