• + 3 comments

    hint : use priority_queue