I think the solution is not unique.
can u tell me where/which test suite u're facing problem?
cz I think the solution should be unique since there is only one parameter.
In the test2. Why [7 3 4 5 6] is not right?
if there are more than one possibilities..they should be placed in sorted manner. that should do it
sorted?[3 4] or [4 3] in test2?
sorted based on the marks --
[40,50] == [4,3]
found it difficult but fun :)
Count from 0 to N^M in base N.
surface of a spherical planet
Convert String to Morse Code
Basics: 'Find the eigenvalues of given matrix
Magic is simple (for beginners)
Sieve of Eratosthenes - 02
Fault in our Stars - 02
Maya - 01
The Dark Knight
ZigZag - 01
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office