---
title: "Discussion on \"Given an m ×n matrix in which each row and column is sorted in ascending order, design an algorithm to find an element.\" | Hashnode"
description: "Discussion on \"Given an m ×n matrix in which each row and column is sorted in ascending order, design an algorithm to find an element.\". Algorithm Description:\nWe are given a Matrix (say A) of size m x n, whose elements are:\n$$\\begin{pmatrix} a11 & a12 & a13 & ...... & a1n \\\\ a21 & a22 & a23 & ...... & a2n \\\\ ...... & ...... & ...... & aij & ...... \\\\  am1 & am2 & am3 & ...... & amn \\..."
url: "https://hashnode.com/posts/given-an-m-n-matrix-in-which-each-row-and-column-is-sorted-in-ascending-order-design-an-algorithm-to-find-an-element/63687b39e8a6494dc7e9d86c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Given an m ×n matrix in which each row and column is sorted in ascending order, design an algorithm to find an element.](https://harivamsiyadavalli.com/given-an-m-n-matrix-in-which-each-row-and-column-is-sorted-in-ascending-order-design-an-algorithm-to-find-an-element?utm_source=hashnode&utm_medium=feed)

Algorithm Description: We are given a Matrix (say A) of size m x n, whose elements are: $$\\begin{pmatrix} a11 & a12 & a13 & ...... & a1n \\\\ a21 & a22 & a23 & ...... & a2n \\\\ ...... & ...... & ...... & aij & ...... \\\\ am1 & am2 & am3 & ...... & amn \\...

Nov 7, 2022 · 3 min read · harivamsiyadavalli.com  
Read the article

-   [#binary-search-algorithm](https://hashnode.com/tag/binary-search-algorithm)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#interview-questions](https://hashnode.com/tag/interview-questions)
-   [#amazon](https://hashnode.com/tag/amazon)

## Written by

[Hari Vamsi](https://hashnode.com/@harivamsi9)

@harivamsi9

  
[View profile](https://hashnode.com/@harivamsi9)

Learn, Inspire, Lead

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
