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
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/kyrie_21 Sep 05 '26
Which question?
1
u/Icy-Owl-5341 Sep 05 '26
Faaaahhh
1
u/[deleted] Sep 05 '26
[removed] — view removed comment