79163486

Date: 2024-11-06 16:45:10
Score: 1.5
Natty:
Report link

you could set the count as 0 in the begining of the function

def bubbleSort(arr):
    swap.calls = 0

and the decorator on the swap


@swapCount
def swaparr):
    pass
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ivans