Jumping Shradha
CodeChefOpen on judge ↗
Shradha loved traveling the world. He loved going from one city to the other. Being the miser that he is, he never wishes spend any money. Shradha, instead, jumps from one city to the other. Also he likes trips of high quality. He can start at any city of his choice. Given that he has visited the ith city, he will not visit it again, he will only visit the remaining unvisited cities. This means t
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