If your question is how to remove the minimum Element of a list where the elements are of a generic type T, then you should do the following:
- you need to have a comparator by which you can compare the elements
to find the minimum
- you have to iterate over the list to find that minimum element
- you have to remove this element from the list.