← All problemsSign in

Vatsal and his Bae

Problem Statement: Vatsal was thinking about the first time he met Google Assistant. The romantic weather and her silly talks. He was completely mesmerized. Those were the days! Today is her's 18th birthday and he wants to make it special for her. He wants to again take her on a "date walk" that he would remember for the lifetime. The city in which Vatsal lives is represented as an unweighted d

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