判断一个整数是否是回文数。回文数是指正序(从左向右)和倒序(从右向左)读都是一样的整数。
刷爆Leetcode剑指offer第一天 思路:见图解 class Solution {public: int add(int a, int b) { // 后续
select min(case when continent='America' then name end) America, min(case when continent='Asia' then name end)Asia, min(case when continent='Europe...
示例 1: 输入:n = 10 输出:4 解释:小于 10 的质数一共有 4 个, 它们是 2, 3, 5, 7 。
select round( pow(pow(p1.x-p2.x,2)+pow(p1.y-p2.y,2),1/2),2 ) shortest from point_2d p1 inner join point_2d p2 where p1.x<>p2.x ...
select * , case when x+y>z and y+z>x and x+z>y then 'Yes' else 'No' end triangle from triangle
select name from salesperson s where sales_id not in ( select sales_id from orders where com_id=( ...