Chef and Cakes
CodeChefOpen on judge ↗
Chef and Cakes Chef is working in a bakery.He has n cakes.The cakes are circular in shape and have different radii. chef has to arrange these cakes in a (multi-level) cakes. A cake can be placed over another cake if its radius is strictly less than the other one. Chef needs to find the possible minimum number of cakes(multilevel or single-level) that can be generated by placing cakes in this
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start