Oracle | Phone | Saddle Points in Matrix

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-02-12Added By Anonymous
Source: Link

Company: Oracle
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

Given a matrix of m x n size, the task is to find all saddle points of the matrix. A saddle point is an element of the matrix such that it is the minimum element in its row and maximum in its column.

I was able to come up with O(n^2) solution but was not able to complete coding in 30 mins. -_-

Comments