Death Star
CodeChefOpen on judge ↗
Problem description: After failing to destroy the Republic with the 'Starkiller', Kylo Ren now wants to complete his mission with a new weapon. He wishes to use the mighty weapon 'Deathstar' to destroy the planets of the Republic. There are n planets in the Republic, each present at a 2D coordinate (x,y). He has only one charge left in his 'Deathstar'. He can place it at any coordinate and fire i
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