Hi Amitava:
Could you provide an example in your problem statement? Also, as Evan says below, you should have more than one test case or it becomes a trivial matter to hard-code a particular answer.
Probably should add a couple more test cases so that silly people like me don't submit answers like this. ;)
Return the largest number that is adjacent to a zero
3773 Solvers
978 Solvers
413 Solvers
Is this triangle right-angled?
2544 Solvers
Deleting an element in a matrix
328 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!