首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
lahm66
获赞
12
粉丝
0
关注
3
看过 TA
28
男
门头沟学院
2026
Java
IP属地:浙江
lahm
私信
关注
拉黑
举报
举报
确定要拉黑lahm66吗?
发布(131)
评论
刷题
收藏
lahm66
关注TA,不错过内容更新
关注
10-14 18:27
门头沟学院 Java
题解 | 计算男生人数以及平均GPA
select count(*) male_num,avg(gpa) avg_gpa from user_profile where gender='male';
0
点赞
评论
收藏
分享
10-14 18:21
门头沟学院 Java
题解 | 查找GPA最高值
select gpa from user_profile where university='复旦大学' order by gpa desc limit 0,1; # 第二种 select max(gpa) gpa from user_profile where university='复旦大学'
0
点赞
评论
收藏
分享
10-13 16:26
门头沟学院 Java
题解 | 查看学校名称中含北京的用户
_:匹配任意一个字符%:匹配0个或多个字符 select device_id,age,university from user_profile where university like '%北京%';
0
点赞
评论
收藏
分享
10-13 16:17
门头沟学院 Java
题解 | 操作符混合运用
select device_id,gender,age,university,gpa from user_profile where gpa>3.5 and university='山东大学' or gpa>3.8 and university='复旦大学' order by device_id asc;
0
点赞
评论
收藏
分享
10-13 16:11
门头沟学院 Java
题解 | Where in 和Not in
select device_id,gender,age,university,gpa from user_profile where university in ('北京大学','复旦大学','山东大学');
0
点赞
评论
收藏
分享
10-13 15:36
门头沟学院 Java
题解 | 最大子段和
动态规划dp[i]:数组中第i个元素a[i]结尾的连续子数组的最大和 import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n=in.nextInt(); int[] a=new int[n]; for(int i=0;i<n;i++){ a[i]=in.nextInt(); } long[] dp=new lon...
0
点赞
评论
收藏
分享
10-13 14:45
门头沟学院 Java
题解 | 最长不下降子序列
参考资料:https://blog.nowcoder.net/n/1b12147d7180429da922d2bdfc160192 import java.util.Scanner; import java.util.List; import java.util.ArrayList; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static int upperBound(List<Integer> arr,int target){ int low=0; int high=arr.size(); w...
0
点赞
评论
收藏
分享
10-12 13:31
门头沟学院 Java
题解 | 高级操作符练习(2)
select device_id,gender,age,university,gpa from user_profile where university='北京大学' or gpa>3.7;
0
点赞
评论
收藏
分享
10-12 11:11
门头沟学院 Java
题解 | 高级操作符练习(1)
select device_id,gender,age,university,gpa from user_profile where gender='male' and gpa>3.5;
0
点赞
评论
收藏
分享
10-12 11:07
门头沟学院 Java
题解 | 用where过滤空值练习
select device_id,gender,age,university from user_profile where age is not null;
0
点赞
评论
收藏
分享
10-12 10:40
门头沟学院 Java
题解 | 查找除复旦大学的用户信息
select device_id,gender,age,university from user_profile where university!='复旦大学';
0
点赞
评论
收藏
分享
10-12 10:37
门头沟学院 Java
题解 | 查找某个年龄段的用户信息
select device_id,gender,age from user_profile where age>=20 and age<=23;
0
点赞
评论
收藏
分享
10-12 10:35
门头沟学院 Java
题解 | 查找年龄大于24岁的用户信息
select device_id,gender,age,university from user_profile where age>24;
0
点赞
评论
收藏
分享
10-12 10:32
门头沟学院 Java
题解 | 查找学校是北大的学生信息
select device_id,university from user_profile where university='北京大学';
0
点赞
评论
收藏
分享
10-12 10:24
门头沟学院 Java
题解 | 低买高卖
参考:https://blog.nowcoder.net/n/94c945090e7e42fbb7b290827ac4e609 import java.util.*; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n=in.nextInt(); int[] p=new int[n]; for(int i=0;i<n;i++){ p[i]=in.nextInt...
0
点赞
评论
收藏
分享
1
2
3
4
5
6
9
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务