Minimum Selections To Clear Author Grid
Asked at Goldman Sachs · Coding Questions · Difficulty: Hard · Last asked Sep 8, 2025
A library shelf is an `n x m` grid. Each cell is either empty (`0`) or holds one encyclopedia volume, written as the positive integer id of its author. You clear the shelf by selecting cells, and you want to use as few selections as possible.
Loading the problem…
More Goldman Sachs interview questions
- Probability and Statistics Drill: Eight Numeric Problems
- Combine Sorted Linked Lists
- Goldman Hirevue Behavioral Bank (6 Questions)
- Client Request That Breaks Firm Policy Before a Deal Closes
- Explain Recursion to a Non-CS Audience
- Implement a Deque From Scratch