← All problemsSign in

3 Idiots

*Raju* and *Farhan* are challenged by *Chatur* to solve a question on the historical date - $5^{th} $ September. *Chatur* agrees to tell them about *Rancho*, only when they will solve the question. Given an array of $N$ numbers and a special number $k$. For every index $i$, display the count of numbers strictly less than $A_i + k$ in the given array. Being their friend, help them answer 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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start