I am not able to understand how to optimize the code further, I am only adding element in queue if distance is smaller than existing value.
Hi Kunal, this slipped under the radar. Were you able to resolve this?
My perf testcases are failing as well, would like some hints. I am solving in Java
I see the Assessment passes all the testcases.
So does the issue still persist?
no i have solved it. thanks!