week 2 DSA learning series. It is showing WA for my solution of problem -Rectangle (CodeChef: Practical coding for everyone).
my solution link is (CodeChef: Practical coding for everyone). Please guide me.
Logic used by me : Find max length between two consecutive points in x axis and multiply it with 500(max value of y).