sakshian / Hactoberfest2022

Consider this to be your digital diary
MIT License
7 stars 43 forks source link

searchAnElementInA2DMatrix.cpp #29

Closed priyanshuanand166 closed 1 year ago

priyanshuanand166 commented 1 year ago

Given an n x n matrix and an integer x, find the position of x in the matrix if it is present. Otherwise, print “Element not found”. Every row and column of the matrix is sorted in increasing order.