仁狮001
仁狮001
全部文章
分类
题解(13)
归档
标签
去牛客网
登录
/
注册
仁狮001的博客
全部文章
(共44篇)
题解 | #检索所有列#
uid,exam_id, round(avg(if(max_min_score=0,score,(score-min_score)/max_min_score*100)))avg_new_score#如果最大值与最小值之差为0,则不做归一化 FROM (SELECT#子查询 ...
Mysql
2022-04-06
0
305
题解 | #统计每个学校的答过题的用户的平均答题数#
解题思路: 1、先统计每个用户的答题数量——count、子查询; 2、用答题用户表左连接学校信息,这样可以把未答过题的用户去掉——left join; 3、按学校分组统计平均答题数量——avg、group by; 4、按学校名称顺序排列——order by。 代码: ...
Mysql
2022-03-16
9
386
题解 | #买卖股票的最好时机#
# @param prices int整型一维数组 # @return int整型 class Solution: def maxProfit(self , prices):# -> int :List[int] # write code here ...
Python3
2021-09-27
1
367
题解 | #买卖股票的最好时机#
# @param prices int整型一维数组 # @return int整型 class Solution: def maxProfit(self , prices):# -> int :List[int] # write code here ...
Python3
2021-09-27
0
319
首页
上一页
1
2
3
4
5
下一页
末页