Strongest fighter problem

TLE in 3 test cases

@Learning_bunny
You wrote a lot of code for queue
While it is great for practice try to use STL as much as possible
In line 131 you had to use while(!q.isEmpty()&&q.getFront()<=i-k)
I’ve sent you a code with STL
Please see this