We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b66205 commit 29a1ca9Copy full SHA for 29a1ca9
foundation/2d-arrays/saddle-point/README.md
@@ -0,0 +1,25 @@
1
+## Saddle Point
2
+
3
+### Easy
4
+***
5
6
+1. You are given a square matrix of size 'n'. You are given n*n elements of the square matrix.
7
+2. You are required to find the saddle point of the given matrix and print the saddle point.
8
+3. The saddle point is defined as the least value in the row but the maximum value in the column of the matrix.
9
10
+**Example 1:**
11
+<pre>
12
+<b>Input: </b>
13
+n=4,
14
+arr = { 11 12 13 14
15
+ 21 22 23 24
16
+ 31 32 33 34
17
+ 41 42 43 44 }
18
+<b>Output: </b> 41
19
+</pre>
20
21
+**Constraints:**
22
+```
23
+1 <= n <= 10^2
24
+-10^9 <= e11, e12, .. n * m elements <= 10^9
25
0 commit comments