Removing Minimum Number of Magic Beans at DE Shaw

Medium44.4% acceptance

This problem has 75.0% frequency at DE Shaw.

Problem Description

You are given an array of **positive** integers `beans`, where each integer represents the number of magic beans found in a particular magic bag. **Remove** any number of beans (**possibly none**) from each bag such that the number of beans in each remaining **non-empty** bag (still containing **at...

Read full problem and hints

Topics


More DE Shaw Questions

View all DE Shaw questions