我不打朋友圈
我不打朋友圈
全部文章
题解
归档
标签
去牛客网
登录
/
注册
我不打朋友圈的博客
全部文章
/ 题解
(共309篇)
题解 | #翻转单词序列#
public class Solution { public String ReverseSentence(String str) { String[] s = str.split(" "); String s1 = ""; int len = s.length; for(int i = len -...
Java
2021-12-18
0
282
题解 | #有效括号序列#
import java.util.*; public class Solution { /** * * @param s string字符串 * @return bool布尔型 */ public boolean isValid (String s) { Stack stack = new Stac...
Java
2021-12-17
0
319
题解 | #删除链表的倒数第n个节点#
import java.util.*; /* public class ListNode { int val; ListNode next = null; } */ public class Solution { /** * * @param head ListNode类 * @param n ...
Java
2021-12-17
0
420
题解 | #删除有序链表中重复的元素-II#
import java.util.*; /* public class ListNode { int val; ListNode next = null; } */ public class Solution { /** * * @param head ListNode类 * @return L...
Java
2021-12-17
0
377
题解 | #求平方根#
class Solution { public: /** * * @param x int整型 * @return int整型 / int mysqrt(int x) { if(x <= 0){ return x; } long left = 1; long right = x; while(...
C++
2021-12-17
0
304
题解 | #牛客的课程订单分析(三)#
select t.id,t.user_id,t.product_name,t.status,t.client_id,t.date from ( select ,count() over(partition by user_id) as num from order_info where produc...
Sqlite
2021-12-17
0
323
题解 | #牛客的课程订单分析(二)#
select user_id from (select user_id,count(user_id) as ui from order_info where date >'2025-10-15' and product_name in ('C++','Java','Python') and s...
Sqlite
2021-12-17
0
265
题解 | #考试分数(二)#
select gr.id,gr.job,gr.score from grade gr, (select job,avg(score) as score from grade group by job) b where gr.job = b.job and gr.score > b.score ...
Sqlite
2021-12-17
0
294
题解 | #平均工资#
select avg(salary) from salaries where to_date = '9999-01-01' and salary != (select max(salary) from salaries where to_date = '9999-01-01') and salar...
Sqlite
2021-12-17
0
236
题解 | #二叉搜索树的后序遍历序列#
public class Solution { public boolean VerifySquenceOfBST(int [] sequence) { int len = sequence.length; if(len == 0){ return false; } return help(sequ...
Java
2021-12-17
2
357
首页
上一页
15
16
17
18
19
20
21
22
23
24
下一页
末页