Missing Tree
CodeChefOpen on judge ↗
There is a Forest. Chef is trying to label the trees from $1$ to $N$ but unfortunately chef missed one Number. Chef is busy so help him to find that missing number. ###Input: The first line of input contains an integer $T$ denoting the number of test cases. For each test case first line contains integer $N$. The subsequent line contains $N-1$ numbers (space separated) which are given to tr
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