Average
CodeChefOpen on judge ↗
Kavya is given list of integers $nums$ and an integer $k$, print the number if you can remove it from the list to make the average equal to exactly $k$. Else, print “-1”. Help kavya! Copy the buggy code from [here!](https://pastebin.com/mp7617qg) ### Input - First line will contain number of testcases $t$. For each test case - First line will contain $nums$, an array of integers. - Second line c
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