QuantForcesquant interview practice

07010. Search in sorted matrix

difficulty 1400·answer type: strategy·Not solved

Problem

You have a square grid of numbers. The numbers in each row increase from left to right; the numbers in each column increase from top to bottom. Design an algorithm to find a given number from the grid. What is the complexity of your algorithm?

Submit answer

You must be signed in to submit answers.