Min Max Queries
CodeChefOpen on judge ↗
Problem description. You are given an array of size N on which you need to answer Q queries as follows. There are two types of queries, 1. M L R Find Maximum number in the range [1,N] excluding [L,R] . 2. m L R Find Minimum number in the range [1,N] excluding [L,R] Input Input description. - The first line contains a single integer N denoting the size of array as described above.... - The
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