Introduces state machine DP — modeling each day as a state (holding, sold, rest) with transitions between them.
Enable JavaScript for the full StreamPrep guide.