1. If myArray is a two-dimensional n-by-m array, the transpose of myArray is the m-by-n array transpose, such that transpose[i][j] is equal to myArray[j][i]. Define a static method that accepts a two-dimensional array as an argument and returns its transpose as a new array.
2. Define a static method that accepts a two-dimensional n-by-n array as an argument and transforms it into its transpose (see the previous exercise), using the least amount of additional storage possible.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here