The resize method in the Grid class resets the dimensions of a grid but also initializes every element of the grid to its default value. Write a function
hat resizes the grid but fills in the data from the original grid by copying elements in the standard row-major order (left-to-right/top-to-bottom). For example, if my Grid initially contains the values
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here