Miss AND placed
CodeChefOpen on judge ↗
Rahul Jain is given an array of integers of size $N$. Her Professor asked Rahul to sort the array but as usual, Rahul did not do his task. So now the Professor will cut his marks for each misplaced element. Rahul Jain wants to know how much marks he will lose. ###Input Format First-line contains an integer $T$ denoting number of test cases. For each test case: The first line contains a
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