Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # In-class Exercise
- # (1) Create a 3D array of 24 integers with dimensions (2, 3, 4)
- # (2) Add a unique name to every column for each dimension
- # (3) Write a function to find the maximum of each column along the given dimension
- # Example: input array A =
- # , , h
- # e f g
- # a 4 55 63
- # b 45 88 15
- # c 74 44 13
- # d 41 17 77
- # , , i
- # e f g
- # a 97 3 86
- # b 78 62 66
- # c 84 46 64
- # d 100 65 96
- # getMax(A,1)=(97,88,84,100), getMax(A,2)=(100,88,96), getMax(A,3)=(88,100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement