Cody

Problem 44387. Birthday cake

It's Cody's 5th birthday, and you've been tasked with putting the candles on the cake. Your goal is to maximize the distance between the 5 required candles.

Given a rectangular cake with specified length and width, return the highest possible minimum distance between any two candles.

Important notes

  • You may assume that a candle can be placed directly on the edge of the cake (even though that would be physically challenging!).
  • Required tolerance: <0.01

Solution Stats

21.38% Correct | 78.62% Incorrect
Last Solution submitted on Nov 18, 2019

Problem Comments

Solution Comments

Problem Recent Solvers61

Suggested Problems

More from this Author44

Problem Tags