Trickiness depending on language you use


  • 20
    T

    I've been going at this problem with similar approach as other people using an assumed max palindrome. However if you're using javascript you wwill encounter an issue where using an input of 8 would cause precision issues since javascript integers actually only have 53 bits of precision for a continuous integer. This means that in order to pass the test case for n = 8 you would need to manually handle the numbers (potentially using strings). That said, I think this should be labeled as at least a medium question, hardly an easy question based on my interview experience.


  • 1
    A

    Upvote this post!


Log in to reply
 

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