medium10 pts · first answer countssorting-and-searching
Search a row- and column-sorted matrix
Each row and each column of an m x n matrix is sorted, but rows do not continue from each other. What is the classic O(m + n) way to find a value?
Discussion 0
Join free to post in the discussion.
Related questions
- Bubble sort best case with early exitBackend Developer
- What a stable sort meansBackend Developer
- Merge sort time in every caseBackend Developer
- Best simple sort for nearly sorted dataBackend Developer
- Swaps made by selection sortBackend Developer
- What in-place sorting meansBackend Developer
- Quick sort worst-case timeBackend Developer
- JavaScript default sort on numbersBackend Developer