Event counter with rollback (savepoint idea)

Java Hard 4 views
Back to Questions

Problem Description

Task: apply updates (+x) but also handle rollback to previous savepoint index. Return final value.

Input Format

Java method

Output Format

Return value

Constraints

Use stack to store history.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next