ForHeart
ForHeart
全部文章
分类
归档
标签
去牛客网
登录
/
注册
ForHeart的博客
TA的专栏
153篇文章
32人订阅
进阶高级测试工程师
142篇文章
1902人学习
AI自动测试化入门到精通
11篇文章
1292人学习
全部文章
(共158篇)
题解 | #截取出年龄#
select substring_index(substring_index(profile, ',', -2),',',1) as age, count(*) as number from user_submit group by age
2023-11-13
0
254
题解 | #提取博客URL中的用户名#
select device_id, substring_index (blog_url, '/', -1) as user_name from user_submit
2023-11-13
0
191
题解 | #计算用户8月每天的练题数量#
SELECT DAY (date) AS day, COUNT(*) AS question_cnt FROM question_practice_detail WHERE MONTH (date) = '08' group by day
2023-11-13
0
212
题解 | #查看不同年龄段的用户明细#
select device_id, gender, ( case when age >= 25 then '25岁及以上' when age >=20 and age <25 then '20-...
2023-11-13
0
232
题解 | #计算25岁以上和以下的用户数量#
select (case when age>=25 then '25岁及以上' else '25岁以下' end)as age_cut, count(*) as number from user_profile group by age_cut
2023-11-13
0
276
题解 | #买卖股票的最好时机(二)#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # 计算最大收益 # @param prices int整型一维数组 股票每一天的价格 # @return int整型 # class Solution: def maxProfit(self , pric...
2023-11-10
0
208
题解 | #买卖股票的最好时机(二)#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # 计算最大收益 # @param prices int整型一维数组 股票每一天的价格 # @return int整型 # class Solution: def maxProfit(self , pric...
2023-11-10
0
188
题解 | #买卖股票的最好时机(一)#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param prices int整型一维数组 # @return int整型 # class Solution: def maxProfit(self , prices: List[int])...
2023-11-10
0
225
题解 | #打家劫舍(二)#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param nums int整型一维数组 # @return int整型 # class Solution: def rob(self , nums: List[int]) -> int...
2023-11-10
0
199
题解 | #打家劫舍(一)#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param nums int整型一维数组 # @return int整型 # class Solution: def rob(self , nums: List[int]) -> int...
2023-11-10
0
223
首页
上一页
7
8
9
10
11
12
13
14
15
16
下一页
末页