We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The maximum size of the input number cannot be greater than 32 (given in question). Now, if you consider a number of 16 digits (half of 32), the number immediately succedding it will have 16 (or 17 digits (17 if the first 16 digits are all 9s)). 16 + 16 = 32. Therefore, any number with 17 (or more) digits will exceed the 32 digit length criteria when paired-up with its successor.
Separate the Numbers
You are viewing a single comment's thread. Return to all comments →
The maximum size of the input number cannot be greater than 32 (given in question). Now, if you consider a number of 16 digits (half of 32), the number immediately succedding it will have 16 (or 17 digits (17 if the first 16 digits are all 9s)). 16 + 16 = 32. Therefore, any number with 17 (or more) digits will exceed the 32 digit length criteria when paired-up with its successor.