Home > Back-end >  Ask bosses a C language problem.
Ask bosses a C language problem.

Time:06-03

Write a function to all the palindrome in the interval [0] 200300, palindrome is read and the are the same number, such as: 1, 525155

CodePudding user response:

The most stupid way
200-3000 cycle bai
Judgment is three or four, three compare hundreds of digits and single digits are the same; Four digits are one hundred and one thousand and end at the same time to compare ten

CodePudding user response:

Don't care about the order
Cycle from 20 to 30
Down the number group

Regardless of order
Cycle from 20 to 100
Number set down the handle three digits
Cycle from 10 to 30
Four digits number group processing

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related