Java Code Might confuse you


#1

5 10 2 1 5 1 2 10

That would be the answer.


#2

Correct
I think c++ is more clear


#3

Yes it is. C++ was better but lost time on it.