79559429

Date: 2025-04-07 08:50:59
Score: 2
Natty:
Report link

a simple counting variable should do the trick: define a the variable with value zero (i.e. i = 0) before sorting and then increment (i+=1 )whenever you are swapping numbers.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: jans-code