Instacart·Data Scientist·Technical Phone Screen
- Given a list of required products and a set of shoppers each covering some subset of those products, find the minimum number of shoppers needed so their combined purchases cover every required product. Return -1 if it's not possible.
“I recognized this as set cover pretty quickly, which felt good, but then I second-guessed myself mid-explanation and started rambling about greedy being optimal when it's obviously not.”