Back to problems

Classify relationships for multiple circle pairs

Algorithm · Point72 · Medium

You are given a list pairs with $$N$$ entries. Each entry holds two circles, and a circle is described by a triple (x, y, r) of integers: x and y locate the center and r is the radius with $$r \ge 0$$. Classify every entry by how the two circles relate to each other, and return the resulting labels as a list in the same order as the entries. The value is delivered as a single-element tuple wrapping pairs, so it matches the parameter list of the target function. Let $$d$$ be…

Checking your access…