Magnetic Force Between Two Balls at Roblox

Medium71.9% acceptance

This problem has 75.0% frequency at Roblox.

Problem Description

In the universe Earth C-137, Rick discovered a special form of magnetic force between two balls if they are put in his new invented basket. Rick has `n` empty baskets, the `ith` basket is at `position[i]`, Morty has `m` balls and needs to distribute the balls into the baskets such that the **minimum...

Read full problem and hints

Topics

Also asked at 9 companies


More Roblox Questions

View all Roblox questions