Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. # In-class Exercise
  2. # (1) Create a 3D array of 24 integers with dimensions (2, 3, 4)
  3. # (2) Add a unique name to every column for each dimension
  4. # (3) Write a function to find the maximum of each column along the given dimension
  5. # Example: input array A =
  6. # , , h
  7. # e f g
  8. # a 4 55 63
  9. # b 45 88 15
  10. # c 74 44 13
  11. # d 41 17 77
  12. # , , i
  13. # e f g
  14. # a 97 3 86
  15. # b 78 62 66
  16. # c 84 46 64
  17. # d 100 65 96
  18. # 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