1362. Closest Divisors
https://leetcode.com/problems/closest-divisors
Description
Given an integer num
, find the closest two integers in absolute difference whose product equals num + 1
or num + 2
.
Return the two integers in any order.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= num <= 10^9
ac
Last updated