For the COOLING (easy) problem, I have submitted this answer. I am getting correct answers in the test cases provided. Apart from that, I have tried atleast 20 different cases. And nowhere am I getting an incorrect answer. So, why am I getting WA? Is it related to the bubble sort that I have used?

# COOLING - getting WA

**abhinav1234**#3

your solution fails for this test case

1

4

2 5 6 7

2 3 6 7

ans is 3 where as your solution gives 4

**betlista**#5

Max N is 30 and max T is 30 too, so bubble sort is not a problem, but you should learn how to use sorting.