Last active
October 11, 2016 05:40
-
-
Save kartikkukreja/ef102a66dba4438fb030dd2481fde425 to your computer and use it in GitHub Desktop.
matrix-median example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given matrix = | |
[1, 5, 7] | |
[4, 10, 11] | |
[8, 11, 12] | |
The sorted array is [1, 4, 5, 7, 8, 10, 11, 11, 12] | |
and the median is 8. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment