solulubeta
Sign in
DSA Basics / Building up
02.22 · Problem

Who Came Back to the Counter First

Medium Hash set while scanning Pro

This problem is part of solulu Pro

A help desk logs the ID of every student who walks up to the counter, in order. Some students come back a second time. The desk wants the ID of the student whose second visit happened earliest.

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 52 of 90 · updated 2026-10-12