If
x = [2 6 4 9 -10 3 1 5 -10]
then the output should be 9, because last minimum value (-10) lies at the 9th position.
The second test is wrong. 4 is not < 1.
The example seems to be wrong as well. The output should be 9 (as stated in test 1 which uses the same vector), not 7.
thanks Sean and Jon for comment on problem, I have corrected the same.
this is a test case specific solution and would not work if change the test cases.
Find state names that start with the letter N
465 Solvers
Back to basics 4 - Search Path
280 Solvers
404 Solvers
MATCH THE STRINGS (2 CHAR) very easy
194 Solvers
89 Solvers