0
/ 50
Write a method that takes an argument representing an array, orig
, and returns a new array that is 50% bigger than the original one. The...
Write a method that takes an argument representing
an array, orig
, and returns a new array that is 50%
bigger than the original one. The new array should also
have all the values copied over to the new array.
Examples:
expandAndCopyArray({1, 10}) -> {1, 10, 0}
Your feedback will appear here when you check your answer.