python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Sort the list of objects by the field in included object
I want to sort the list of objects potentialHS by the distance in ElementWithDistance class but I can't get the distnace field in this way. After calling getElementWithDistance i can't call getDistanc...
HappyProgrammer
Votes: 0
Answers: 1
Why is this minHeap implementation incorrect?
I am using a PriorityQueue to solve the Meeting Rooms II problem from Leetcode. I have developed my own solution that fails on certain test cases, yet from my eyes it is indistinguishable from the pro...
calvinhobbes123
Votes: 0
Answers: 2
Java Collections.Sort doesn't / can't group by same value
enter image description here
my code is :
excelSheetRows -> existing JSONArray data.
JSONArray sortedJsonArray = new JSONArray();
List list = new ArrayList();
for...
Adrian Ng
Votes: 0
Answers: 1
Creating a minimum heap of a mapping between an object and a value
The questions is in Java.
I have some sort of an Object, lets call it MyObj. Additionally, I have a way to score each instance of this object. However, the scoring depends also on another integer valu...

user16099288
Votes: 0
Answers: 1