edualgo / interview-corner

Many time, when an interview approaches, candidates start searching for different algorithms in different programming languages for practise. This project aims to build a website which will contain the codes along with the techniques and explanations so that it can be helpful for many
https://opensource.edualgoacademy.com/interview-corner/
MIT License
42 stars 41 forks source link

Staircase Search #89

Open nayaldivya opened 3 years ago

nayaldivya commented 3 years ago

We are given a row and column wise sorted array in which we have to search for a particular key. If found, return the index values else return -1. For eg: INPUT: Array : 1 4 8 10 2 5 9 15 6 16 18 20 11 17 19 23 Key to search: 17

OUTPUT: Key found at row=3 and column=1

nayaldivya commented 3 years ago

Hi @Abhijit2505. Please assign me this under SWoC.