Got WA in The Smallest Pair

I applied quick sort and added the first two integer of that particular sorted array but still I got WA. I am stuck here, please provide some hint.

Problem Statement :

My Solution :

Did you forget to print the '\n' character after each test case?

1 Like

yes exactly :smiley: