纽克纽克牛克
纽克纽克牛克
全部文章
分类
归档
标签
去牛客网
登录
/
注册
纽克纽克牛克的博客
全部文章
(共74篇)
题解 | #查找山东大学或者性别为男生的信息#
select device_id, gender, age, gpa from user_profile where university = "山东大学" UNION all select device_id, gender, ...
2023-06-28
0
329
题解 | #分组过滤练习题#
select university , Round(avg(question_cnt),3) as avg_question_cnt , round(avg(answer_cnt),3) as avg_answer_cnt from user_profile group by university...
2023-06-27
0
324
题解 | #设计LFU缓存结构#
import java.util.*; public class Solution { //设置节点结构 static class Node{ int freq; int key; int val; //初始化 ...
2023-06-26
0
351
题解 | #设计LRU缓存结构#
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param operators string字符串Array...
2023-06-25
0
457
题解 | #分组计算练习题#
对于每个学校每种性别 ,这种sql 使用多个group by 进行分组即可。group by university , gender;
2023-06-14
0
322
题解 | #用where过滤空值练习#
select device_id,gender,age,university from user_profile where age != 'null'; //这里使用判空有3种方法 1. age is not null 2. age <> 'null' 3. age != 'nul...
2023-06-14
0
356
题解 | #查找后多列排序#
给多个字段进行排序 只需要按排序的重要级 来orderby ,比如 先按gpa 再按年龄排序order by gpa asc , age asc;
2023-06-14
0
387
题解 | #顺时针旋转矩阵#
import java.util.*; public class Solution { public int[][] rotateMatrix(int[][] mat, int n) { // write code here int up = 0; ...
2023-06-09
0
366
题解 | #螺旋矩阵#
import java.util.ArrayList; public class Solution { public ArrayList<Integer> spiralOrder(int[][] matrix) { ArrayList<Integer>...
2023-06-09
0
361
题解 | #旋转数组#
import java.util.*; public class Solution { /** * 旋转数组 * @param n int整型 数组长度 * @param m int整型 右移距离 * @param a int整型一维数组 给定数组...
2023-06-08
0
347
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页