i am maintaining k sized heap
MY PROBLEM:
in my code if in line 10 i do v[ l ] >=v[ min ] instead of v[ l ] > v[ min ] then i pass only the second test case but when i don’t do this then i pass only the first test case
i am not able to understand why is it so and why it makes a difference when i have done these changes
PLEASE HELP ME
my code:
https://ide.codingblocks.com/s/56143