Python Forum
Cant understand the question...
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cant understand the question...
#1
Question 
3. Given a 2 D Array of N X M Dimension, Write a function that accepts this array as well as two
numbers N and M. The method should return the top-left N X M sub matrix e.g:
[
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
]
top_left_sub_matrix (matrix, 2, 2) -> should return:
[
[1, 2]
[4, 5]
]
Reply


Messages In This Thread
Cant understand the question... - by SuperNinja3I3 - Jul-01-2022, 01:46 PM
RE: Cant understand the question... - by DeaD_EyE - Jul-01-2022, 02:48 PM
RE: Cant understand the question... - by jefsummers - Jul-06-2022, 11:27 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020