Matrix search(array 1d)

my last two test cases are not giving the right answer.Here is the link to the code https://ide.codingblocks.com/s/49609

Hey Yatharth, your approach is not correct there is no need to perform transpose operation in this matrix, its a very simple problem and its video tutorial is also provide in the course “CPP Webinar : 2-D Arrays, Strings” with this name, you can refer this.