The King's Walk — Solution & Editorial
Diagonal steps cover both axes at once, so the answer is the larger of the two absolute differences.
Complexity: O(1)
Diagonal steps cover both axes at once, so the answer is the larger of the two absolute differences.
Complexity: O(1)