DEV Community

Pranav Maddi
Pranav Maddi

Posted on

Coder Cup $100 problem #5: Packing Spheres

I want to write code every day, and I've always found solving little challenges fun and satisfying. Coder Cup is an online programming competition designed to help you level up your skills through unique challenges.

This week's problem

What is the length of the shortest pipe, of internal radius 50mm, that can fully contain 21 balls of radii 30mm, 31mm, ..., 50mm?

Check it out and submit your solution to win $100 on codercup.org/p5

Top comments (0)