Problem 1237 · Medium

Find Positive Integer Solution for a Given Equation

For a function increasing in both arguments, walk a pointer down the y axis while x climbs to find every pair equal to z.

Open the interactive visualisation