Is Perfect Number 完美数(esay)
Good morning! Here’s your coding interview problem for today. This problem was asked by Microsoft. A number is considered perfect if its digits sum up to exactly 10. Given a…
Good morning! Here’s your coding interview problem for today. This problem was asked by Microsoft. A number is considered perfect if its digits sum up to exactly 10. Given a…
Given a 32-bit signed integer, reverse digits of an integer.(将一个32位的有符号的整数的进行反转,注意:反转后可能会溢出,如果溢出,则返回0) Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 Note: Assume…