Ad
  • Custom User Avatar

    maybe you can use a list that from 0 to len(n) to represent the length

  • Custom User Avatar

    It depends how did you create.

    let arr = nums;
    Won't work because changin arr will also change nums. It's because they are not primitive types of variables, they are reference types. you can have a research about it to understand better.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution