removeAt
Remove and return the element at index, also removing the corresponding weight.
Return
removed element
Parameters
index
index of element to remove
Throws
if index invalid
Complexity: O(n) due to shift.
Remove and return the element at index, also removing the corresponding weight.
removed element
index of element to remove
if index invalid
Complexity: O(n) due to shift.