This is long reading problem but it is a simple priority queue implementation... Don't know if I have done a decent job in explaining ... Let me know if you have any doubts.... Connect with me at 📸 Instagram : / vikrant.prasad2 💼 LinkedIn : / vikrantprasad5 📝 Want me to explain any problem ? Fill this form : https://forms.gle/FGUnRp6trmL8Yya5A 1 Like = motivation 1 Subscribe = more motivation :) SUBSCRIBE guys ... Thanks for watching friends. Please like and share with your friends it will give me motivation to make further videos.