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. ;)
6105 Solvers
Find the peak 3n+1 sequence value
1122 Solvers
291 Solvers
Return unique values without sorting
597 Solvers
253 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!