Add Nested Begin, Commit, and Abort Semantics to a Shopping Cart

Quick Overview

Extend an in-memory shopping cart with nested begin, commit, and abort operations while preserving correct state visibility. Compare snapshot and undo-based designs, define invalid-operation behavior, and test nested scope combinations, repeated item changes, discount caching, and future durability needs.

Add Nested Begin, Commit, and Abort Semantics to a Shopping Cart

Company: Decagon

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: hard

Interview Round: Technical Screen

Overview: Extend an in-memory shopping cart with nested begin, commit, and abort operations while preserving correct state visibility. Compare snapshot and undo-based designs, define invalid-operation behavior, and test nested scope combinations, repeated item changes, discount caching, and future durability needs.

|Home/Software Engineering Fundamentals/Decagon
Decagon logo
Decagon
Jul 13, 2026
hardSoftware EngineerTechnical ScreenSoftware Engineering Fundamentals
11
0
Loading...
Loading comments...