79432306

Date: 2025-02-12 08:01:35
Score: 2
Natty:
Report link

This because array is passed along as reference which means even if you reassign it, there is only one array in the memory and all of your assignments points to a single thing. Try making a deep copy of the object, this will create a new array and no longer modify the same old array.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sarthak Sharma