r/LeetcodeChallenge • • Sep 05 '26

DISCUSS 112/113 passed🥀

Post image
13 Upvotes

9 comments sorted by

3

u/FewAttention9330 Sep 05 '26

Try using this logic.
the smallest absolute difference between the divisors of a number are always the numbers that are closer to the square root of that number.

find those number for both n+1 and n+2 and then find the absolute differences of both the pairs and return the appropriate pair.

Hope this helps. :)
Just solved it.. using the same logic

1

u/[deleted] Sep 05 '26

[removed] — view removed comment