@goc3, for cases with multiple inputs, you might wanna sort the answers for each case.
@Dyuman Joshi: each answer is invariant with respect to input order.
I don't remember why I wrote it here but this comment doesn't belong to this question. My Apologies.
272 Solvers
173 Solvers
401 Solvers
191 Solvers
259 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!