Question About Test Case 10 and 100


  • 0
    N

    According to the problem,

    The 'closest' is defined as absolute difference minimized between two integers.

    If input is '10', the correct output is '9'. But why '11' is not a correct answer? The absolute difference between 10 and 11 is also 1. Same question for 100, 1000, ....


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.