Khojo
CodeChefOpen on judge ↗
You are given $Q$ queries.Each query is of type 1,2 or 3. If query type is 1, you have to insert one integer $x$ given in input. If query type is 2, one integer $y$ is given,you have to tell whether it present or not.If present print $Yes$ otherwise $No$. If query type is 3, one integer $z$ is given,you have to find element just $greater$ than $z$ ,if present print that number otherwise ,print
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