Big Achiever
Given $N$ students standing in a row, each student $i$ has an **distinct** achievement score $A_i$ provided in an array $A = [A_1, A_2, \dots, A_n]$. The array $A$ consists of distinct integers from $1$ to $N$. A student $i$ ( $1 \leq i \leq N$ ) will be happy if their achievement score $A_i$ is greater than the achievement scores of all the students standing before them in the array. The task
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