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.

评论

此博客中的热门博文

776. Split BST

663. Equal Tree Partition

532. K-diff Pairs in an Array