I am getting a runtime error for the test case
Lemme know where I’m mistaken
Dijkstra's Algorithm java
You are getting run error because of wrong logic in your unheapify function . When you try to access to isGreater(data.get§,data.get(x)) > 0 . In this in some cases x = data.size and this is giving array index out of bounds exception.
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.