← All problemsSign in

Around The Planets

The company, SpaceX has discovered a new galaxy system, JuicyWay. JuicyWay has a big star and $N$ planets around the star. Each planet has a type Ai associated with it . SpaceX decides to launch a space tour program in JuicyWay. Two tours are unique if the type of ith planet visited by the two tours are not the same for any i<=$N$. Each tour must not visit a planet more than once. The type of to

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start