Object-Oriented Programming · Oracle · Medium
Requirements Begin with an initial state and a sequence of operations. Produce the state that remains after processing every operation in the given order. This interview exercise is deliberately different from a conventional LeetCode-style problem: the implementation should be organised around the Command pattern, with each operation represented by an independent object that provides an apply(state) method. Follow-up: determine when sequential execution is unnecessary. In…
Checking your access…