Palindrome Number

Revert right half, when remaining <= right half we know we have reached the mid. There is a special case when x ends with 0.

评论

此博客中的热门博文

663. Equal Tree Partition

776. Split BST

Sort Colors II