Don’t worry, unlock all articles / blogs on PrepInsta by just simply logging in on our website
Notifications Mark All Read
No New notification
April 30, 2022
Here on this page, we will learn how to Find the Median of Row Wise Sorted Matrix in Python.
Example :
mat = [[1, 3, 5], [2, 6, 9], [3, 6, 9]] arr = [] for i in range(3): for j in range(3): arr.append(mat[i][j]) arr.sort() print("Median of the given matrix is :", arr[4])
Median of the given matrix is: 5
For similar questions click on the given button
Login/Signup to comment
Get Hiring Updates right in your inbox from PrepInsta
Login/Signup to comment