79246599

Date: 2024-12-03 07:22:53
Score: 1
Natty:
Report link

You are not adding values to the array, you are replacing it.

int[] arr = new int[5]; --> int[] arr = [0,0,0,0,0]
arr = [1,2,3,4,5,6];    --> int[] arr = new int[] {1,2,3,4,5,6} 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: KriyenKP