Failing one test case

i build a vertical order traversal map and printing the last member of each vertical level.
but my code fails one test case. can’t identify what is wrong

@ankit-c11
your approach is correct but your code fails for
for input
20 8 22 5 3 4 25 -1 -1 10 14 -1 -1 -1 -1 -1 -1 -1 -1
your output
5 10 4 22 25
correct output
5 10 4 14 25

thankyou mam :slight_smile: got the problem. Now passes all test cases :slight_smile:

@ankit-c11 no problem. Please mark your doubt as resolved :slight_smile: