首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
clsr_z
获赞
2
粉丝
0
关注
0
看过 TA
5
Suite 116 (McKinney)
2019
Java
IP属地:广东
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑clsr_z吗?
发布(36)
评论
刷题
收藏
clsr_z
关注TA,不错过内容更新
关注
2024-09-10 12:37
Suite 116 (McKinney) Java
题解 | #查看不同年龄段的用户明细#
select device_id, gender, case when age < 20 then '20岁以下' when age >= 20 and age <= 24 then '20-24岁' when age >=25 then '25岁及以上' else '其他' end as age_desc from user_profile
0
点赞
评论
收藏
分享
2024-09-10 12:29
Suite 116 (McKinney) Java
题解 | #计算25岁以上和以下的用户数量#
select (case when (age < 25 or age is null) then '25岁以下' else '25岁及以上' end ) as age_desc, count(*) as total from user_profile group by age_desc
0
点赞
评论
收藏
分享
2024-09-10 12:14
Suite 116 (McKinney) Java
题解 | #统计每个用户的平均刷题数#
select p.university, q.difficult_level, count(d.question_id) / count(distinct d.device_id) as avg_answer_cnt from user_profile p join question_practice_detail d on d.device_id = p.device_id join question_detail q on d.question_id = q.question_id where p.university = '山东大学' group by p.university, q.d...
0
点赞
评论
收藏
分享
2024-09-10 11:58
Suite 116 (McKinney) Java
题解 | #统计每个学校的答过题的用户的平均答题数#
select p.university, count(d.question_id)/count(distinct d.device_id) as avg_answer_cnt from user_profile p join question_practice_detail d on p.device_id = d.device_id group by p.university
0
点赞
评论
收藏
分享
2024-09-10 11:37
Suite 116 (McKinney) Java
题解 | #分组计算练习题#
select gender,university,count(gender),avg(active_days_within_30),avg(question_cnt) from user_profile group by gender,university
0
点赞
评论
收藏
分享
2024-09-10 11:03
Suite 116 (McKinney) Java
题解 | #查询结果限制返回行数#
select device_id from user_profile order by id limit 0,2
0
点赞
评论
收藏
分享
2024-04-12 20:45
Suite 116 (McKinney) Java
题解 | #查找最晚入职员工的所有信息#
select * from employees order by hire_date desc limit 1
0
点赞
评论
收藏
分享
2024-04-03 16:49
Suite 116 (McKinney) Java
题解 | #记录点赞用户#
import java.util.*; public class Main { public static void main(String[] args) { LikeRecorder recorder = new LikeRecorderImpl(); Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { String name = scanner.next(); recorder.like(name); } System.out.println(Arrays.toString(recorder.getL...
0
点赞
评论
收藏
分享
2024-04-03 16:31
Suite 116 (McKinney) Java
题解 | #判断各类型字符个数#
import java.util.*; public class Main { public static void main(String[] args) { int numbers = 0; int words = 0; int space = 0; int other = 0; Scanner scanner = new Scanner(System.in); String str = scanner.nextLine(); //write your code here...... for (int i = 0; i <str.length() ; i++) { char t = ...
0
点赞
评论
收藏
分享
2024-04-03 16:30
Suite 116 (McKinney) Java
题解 | #判断各类型字符个数#
import java.util.*; public class Main { public static void main(String[] args) { int numbers = 0; int words = 0; int space = 0; int other = 0; Scanner scanner = new Scanner(System.in); String str = scanner.nextLine(); //write your code here...... for (int i = 0; i <str.length() ; i++) { char t = ...
0
点赞
评论
收藏
分享
2024-04-03 16:23
Suite 116 (McKinney) Java
题解 | #集合排序#
import java.util.*; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Customer customer1 = new Customer("小明", scanner.nextInt()); Customer customer2 = new Cus...
0
点赞
评论
收藏
分享
2024-04-03 16:13
Suite 116 (McKinney) Java
题解 | #map简单应用#
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String name = br.readLine(); Map<Integer, String> map = new HashMap<Integer, String>(); map.put(1...
0
点赞
评论
收藏
分享
2024-04-03 15:55
Suite 116 (McKinney) Java
题解 | #统计一句话中重复单词的个数#
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String line = scanner.nextLine(); Map<Character, Integer> map = new LinkedHashMap<Character, Integer>(); //write your code here...... for (int i = 0; i < line.len...
0
点赞
评论
收藏
分享
2024-04-03 15:47
Suite 116 (McKinney) Java
Head and Tail of the Queue#
import java.util.ArrayDeque; import java.util.Scanner; public class Main { public static void main(String[] args) { ArrayDeque deque = new ArrayDeque(); Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { String name = scanner.next(); // 初始化队列中的数据 deque.offerLast(name); } // write ...
0
点赞
评论
收藏
分享
2024-04-03 15:38
Suite 116 (McKinney) Java
题解 | #集合遍历#
import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); List<Integer> list = new ArrayList<>(); int num1 = scanner.nextInt(); int num2 = ...
0
点赞
评论
收藏
分享
1
2
3
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务