79238897

Date: 2024-11-30 05:52:04
Score: 1
Natty:
Report link
arr = [2, 0, 1, 2,5]

count = 0

for i in range(len(arr)):
    if arr[i] != 0:
        arr[count] = arr[i]
        count += 1

while count < len(arr):
    arr[count] = 0
    count += 1
    
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Danyal Ahmed