First time here? Check out the FAQ!
answered 2019-02-13 00:54:27 -0600
You can find all the extreme points and then compare them with each other.
Here is solution of finding all extreme points for c++ and here is solution for Javascript. Look at them and try to convert to Java.
c++
Javascript
Java
updated 2019-02-13 00:56:35 -0600