首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
ForHeart
获赞
43
粉丝
51
关注
3
看过 TA
260
男
武汉理工大学
2015
测试开发
IP属地:湖北
默默码农,一直耕耘
私信
关注
拉黑
举报
举报
确定要拉黑ForHeart吗?
发布(314)
评论
ForHeart
关注TA,不错过内容更新
关注
2023-11-14 11:40
武汉理工大学 测试开发
题解 | #将查询列重新命名#
select job_salary as '职位工资' from deliver_record
0
点赞
评论
收藏
分享
2023-11-14 11:38
武汉理工大学 测试开发
题解 | #查询所有投递用户user_id并去重#
select distinct(user_id) from deliver_record order by user_id
0
点赞
评论
收藏
分享
2023-11-14 11:32
武汉理工大学 测试开发
题解 | #21年8月份练题总数#
select count(distinct device_id) as did_cnt, count(question_id) as question_cnt from question_practice_detail where year(date) ='2021' and month(date)='08'
0
点赞
评论
收藏
分享
2023-11-14 11:26
武汉理工大学 测试开发
题解 | #查找后降序排列#
select device_id, gpa, age from user_profile order by gpa desc, age desc
0
点赞
评论
收藏
分享
2023-11-14 11:25
武汉理工大学 测试开发
题解 | #查找后多列排序#
select device_id, gpa, age from user_profile order by gpa asc, age asc
0
点赞
评论
收藏
分享
2023-11-14 11:16
武汉理工大学 测试开发
题解 | #浙大不同难度题目的正确率#
select difficult_level, sum(if(result='right',1,0))/count(result) as correct_rate from user_profile u left join question_practice_detail qp on u.device_id = qp.device_id left join question_detail qd on qp.question_id = qd.question_id where university = '浙江大学' and difficult_level is not null group by...
0
点赞
评论
收藏
分享
2023-11-13 21:24
武汉理工大学 测试开发
题解 | #截取出年龄#
select substring_index(substring_index(profile, ',', -2),',',1) as age, count(*) as number from user_submit group by age
0
点赞
评论
收藏
分享
2023-11-13 21:18
武汉理工大学 测试开发
题解 | #提取博客URL中的用户名#
select device_id, substring_index (blog_url, '/', -1) as user_name from user_submit
0
点赞
评论
收藏
分享
2023-11-13 21:03
武汉理工大学 测试开发
题解 | #计算用户8月每天的练题数量#
SELECT DAY (date) AS day, COUNT(*) AS question_cnt FROM question_practice_detail WHERE MONTH (date) = '08' group by day
0
点赞
评论
收藏
分享
2023-11-13 20:59
武汉理工大学 测试开发
题解 | #查看不同年龄段的用户明细#
select device_id, gender, ( case when age >= 25 then '25岁及以上' when age >=20 and age <25 then '20-24岁' when age >=0 and age<20 then '20岁及以下' else '其他' end ) as age_cut from user_profile
0
点赞
评论
收藏
分享
2023-11-13 20:55
武汉理工大学 测试开发
题解 | #计算25岁以上和以下的用户数量#
select (case when age>=25 then '25岁及以上' else '25岁以下' end)as age_cut, count(*) as number from user_profile group by age_cut
0
点赞
评论
收藏
分享
2023-11-10 21:00
武汉理工大学 测试开发
题解 | #买卖股票的最好时机(二)#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # 计算最大收益 # @param prices int整型一维数组 股票每一天的价格 # @return int整型 # class Solution: def maxProfit(self , prices: List[int]) -> int: # write code here n = len(prices) res =0 for i in range(2,n+1): if prices[i-1]>prices[i-2]: res=res+ prices[i-1]-prices[i-2] ...
0
点赞
评论
收藏
分享
2023-11-10 21:00
武汉理工大学 测试开发
题解 | #买卖股票的最好时机(二)#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # 计算最大收益 # @param prices int整型一维数组 股票每一天的价格 # @return int整型 # class Solution: def maxProfit(self , prices: List[int]) -> int: # write code here n = len(prices) res =0 for i in range(2,n+1): if prices[i-1]>prices[i-2]: res=res+ prices[i-1]-prices[i-2] ...
0
点赞
评论
收藏
分享
2023-11-10 20:43
武汉理工大学 测试开发
题解 | #买卖股票的最好时机(一)#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param prices int整型一维数组 # @return int整型 # class Solution: def maxProfit(self , prices: List[int]) -> int: # write code here n = len(prices) res = 0 dp =[0]*(n+1) for i in range(2,n+1): dp[i] = prices[i-1]-min(prices[:i]) return max(dp)
0
点赞
评论
收藏
分享
2023-11-10 17:34
武汉理工大学 测试开发
题解 | #打家劫舍(二)#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param nums int整型一维数组 # @return int整型 # class Solution: def rob(self , nums: List[int]) -> int: # write code here n = len(nums) res =0 dp1 =[0]*(n+1) #1.包含首位不包含末尾 dp1[1]=nums[0] for i in range(2,n): dp1[i]=max(dp1[i-1],dp1[i-2]+nums[i-1]) res1 = dp1[...
0
点赞
评论
收藏
分享
1
16
17
18
19
20
21
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务