Stockroom Twins

← Back to Five Rings Interview Questions

Question

A shop has one type-A battery and one type-B battery in its storeroom. Tonight's customers have prepaid; any order the shop cannot fill requires a $40 service credit, while all other revenue and operating costs are unchanged by its inventory decision. Some orders request A only, some B only, and some are flexible and accept either. The shop always allocates batteries to fill as many orders as possible, serving type-specific orders before flexible orders.

Tonight has four mutually exclusive possibilities, with the stated probability and numbers of (A-only, B-only, flexible) orders:

  • 30%: (1, 0, 0)
  • 30%: (0, 1, 1)
  • 20%: (1, 1, 1)
  • 20%: (0, 0, 2)

Before demand is revealed, a dealer offers to buy one A battery from the shop or sell it one extra A battery. Ignoring any other inventory value, what is the shop's minimum sale price for its existing A battery and maximum purchase price for a second A battery?

Hint 1

For each possible inventory, count how many orders cannot be supplied in each demand state; a flexible order can consume either remaining type.

A sale compares inventory (1,1) with (0,1). A purchase compares (1,1) with (2,1); those marginal differences need not match.

Check your answer

© 2026 EverythingQuant. All Rights Reserved.