求问达人,尼康raw文件处理# PhotoGear - 摄影器材
t*e
1 楼
先问如何判断一个Integer是否Palindrome,熟题了。
然后接着问如何找比一个int大的下一个palindrome。 Write a function
which returns the next palindrome greater than the given number n.
e.g., f(231) = 232
f(999) = 1001
f(111) = 121
大家有什么思路?除了naive的exhaustive search (其实这个方法也不差吧,因为一般
n加1几次以后就能找到答案了……)
然后接着问如何找比一个int大的下一个palindrome。 Write a function
which returns the next palindrome greater than the given number n.
e.g., f(231) = 232
f(999) = 1001
f(111) = 121
大家有什么思路?除了naive的exhaustive search (其实这个方法也不差吧,因为一般
n加1几次以后就能找到答案了……)