You are viewing a single comment's thread. Return to all comments →
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??
same I dont understand
I think that's a mistake. Forget the question explaination.
PriorityQueue will automatically sort its data in ascending order.
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Jesse and Cookies
You are viewing a single comment's thread. Return to all comments →
In the example given it says:
If we have removed 6, 7 why is 7 back in A??
same I dont understand
I think that's a mistake. Forget the question explaination.
PriorityQueue will automatically sort its data in ascending order.