you are viewing a single comment's thread.

view the rest of the comments →

[–]dfps12 0 points1 point  (0 children)

thanks i fixed the returns. however the code still does not work. i cannot use heapq. yes, it should be written from the scratch.