Back to General discussions forum
I tried figuring out the solution using the equation (x-1)^2 +y^2=1 and x^2+y^2 = 1 which resulted in x=1/2 and y = sqrt(3)/2. But when I used this in my logic I still didn't get the right answer. Any insight?
Try input = "A", "B", "C", etc. All the answers should be 1.
A and D had 1 and -1 respectively, it seems that only when you combine multiple, the results become crazy
dang! you're right. I declared xdist and ydist wrong. thanks for the help.