Abhishek And his Queries
CodeChefOpen on judge ↗
Problem Statement Abhishek loves to play with numbers. Consider a list of numbers with the following operations : . - insert K - inserts the number ‘K’ into the list. - delete K - deletes all the occurrences of number ‘K’ from the list. ’K’ is considered to be present in the list. - sum - Print the sum of minimum and maximum element in the list. If not possible, print -1. The list can contain
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