Jesse and Cookies

  • + 1 comment

    In the example given it says:

    Remove 6, 7 return 6 + 2 x 7 = 20 and A = [20, 16, 8, 7]

    If we have removed 6, 7 why is 7 back in A??

    • + 1 comment

      same I dont understand

      • + 0 comments

        I think that's a mistake. Forget the question explaination.

        PriorityQueue will automatically sort its data in ascending order.