tigg_ZZ
tigg_ZZ
全部文章
分类
题解(11)
归档
标签
去牛客网
登录
/
注册
tigg_ZZ的博客
全部文章
(共48篇)
题解 | #输出 0 到 500 中 7 的倍数#
#!/bin/bash num=0 output=0 while [ $output -le 500 ] do echo $output $((num++)) output=$((num * 7)) done
2024-09-26
0
94
题解 | #两个链表的第一个公共结点#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: ListNode* FindF...
2024-09-17
0
77
题解 | #二分查找-I#
#include <iostream> #include <vector> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * *...
2024-09-17
0
64
题解 | #滑动窗口的最大值#
#include <cstddef> #include <vector> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @...
2024-09-16
0
97
题解 | #合并k个已排序的链表#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2024-09-15
1
78
题解 | #链表内指定区间反转#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-09-15
1
73
题解 | #链表的奇偶重排#
import java.util.*; /* * public class ListNode { * int val; * ListN...
2022-08-08
0
259
题解 | #合并两个有序的数组#
import java.util.*; public class Solution { public void merge(int A[], int m, int B[], int n) { int[] newArray = new int[m+n]; int...
Java
2021-12-28
0
353
题解 | #链表中环的入口结点#
import java.util.; / public class ListNode { int val; ListNode next = null; ListNode(int val) { this.val = val; } } */ public class Solution { pu...
Java
2021-12-28
0
369
题解 | #数组中只出现一次的两个数字#
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param array int整型一维数组 * @return int整型一维数组 */ public int[...
Java
2021-12-06
1
488
首页
上一页
1
2
3
4
5
下一页
末页