Vidit and Einstein
CodeChefOpen on judge ↗
Vidit and Einstein are good friends, but they have different approaches to solve a single problem due to which sometimes they disagree with each other. Due to this behaviour Einstein becomes angry with Vidit, so he challenges him to solve a problem.Vidit being arrogant accepts the challenge, but deep inside he knows that it would be tough to do it. Einstein proposes his challenge as follows:
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