MathWorks interview question

Same C, C++, Java and Math questions as discussed in this forum. Sorting algos and complexities...