Python Forum
Cant understand the question...
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cant understand the question...
#3
I think the challenge in the question is that N and M are used in 2 different ways. The question states the matrix is NxM, then you get passed in to the function N and M but they are different - the example is 3x3 then 2x2.
So, to re-format the question (I hope correctly!):
Write a function that accepts a 2D array and two integers, Row and Cols. Function should then return the subset of the array that is the upper left corner, size Row x Cols.

That actually works out to be _relatively_ easy.
Good luck.
BashBedlam likes this post
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