The code run in python and vs code gives the right answer(case2,2.5) but in leetcode always wrong(2.0).
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 ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果