Solving the Impossible Puzzle (with code)
--
Also known as the Sum and Product Puzzle, the Impossible Puzzle is a logic puzzle that requires you to determine two numbers based on some constraints and a conversation between a pair of people: one who knows only the sum of the two numbers, and another who knows only their product. The puzzle may seem impossible to solve at first, but it’s not, and in this article we’ll walk through some (Python) code that does…