Something Went Wrong

Link:https: https://ide.codingblocks.com/s/183172
where is my code wrong.

@ravi.cs18
Hello Ravi
priority queue will not work in this problem.
checkout maximum element video in doubly ended queue playlist .

Why it is prority queue is not working?

@ravi.cs18
it will not work because question is to find the strength of the strongest fighter in continuous sub-groups of size k.
we will not able to mainatin continuous subgroup using priority queue.

Okkk.now I understand.

1 Like

@ravi.cs18
great …

@ravi.cs18
hello ravi,
if ur issue is resolved then please mark it as resolved

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.