Some accepted solutions fail on certain edge cases because they don’t properly handle arrays where all elements are the same or where negative numbers are included. These cases are not covered in the ...
Currently, we check if an object is already present on the line using the __eq__ operator of a dataclass. However, in many cases, the objects are partial and should be merged, which in turn fails the ...