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 ...
looks like there is no testcase for empty list because of this my code was accepted which will throw" ZeroDivisionError: integer modulo by zero" exception in case of empty list in testcase we have to ...