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. ;)
Sort a list of complex numbers based on far they are from the origin.
4351 Solvers
Make one big string out of two smaller strings
1159 Solvers
Change the sign of even index entries of the reversed vector
304 Solvers
Create a Multiplication table matrix...
286 Solvers
1282 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!