Hello, I was trying to solve ADADET… What I did is:
For each building starting from the first, I find the minimum value of tanx which is the heigths difference over the positions difference. If one of the tanx is lower than zero (Equivalent to say that the building is bigger) the minimum value is reset.
My code is here: My_Code
The problem is that I still get wrong answer and I dont know which case is failing, could somebody help me to figure out?
I really thank you