extern
extern
全部文章
分类
归档
标签
去牛客网
登录
/
注册
extern的博客
全部文章
(共217篇)
题解 | #合并二叉树# | C++
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2024-01-18
0
173
题解 | #合并两个有序的数组# | Python3
# # # @param A int整型一维数组 # @param B int整型一维数组 # @return void # class Solution: def merge(self , A, m, B, n): # write code here ...
2024-01-17
0
172
题解 | #合并两个有序的数组# | Golang
package main /** * * @param A int整型一维数组 * @param B int整型一维数组 * @return void */ func merge( A []int , m int, B []int, n int ) { for i:=m+...
2024-01-17
0
196
题解 | #合并两个有序的数组# | C++
class Solution { public: void merge(int A[], int m, int B[], int n) { for (int i = m+n-1; i >= 0; i--) { if (m >0 &&...
2024-01-17
0
184
题解 | #买卖股票的最好时机(一)# | Rust
struct Solution{ } impl Solution { fn new() -> Self { Solution{} } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * ...
2024-01-16
0
227
题解 | #买卖股票的最好时机(一)# | Golang
package main import "math" /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param prices int整型一维数组 * @return int整型 */ func maxProfi...
2024-01-16
0
205
题解 | #买卖股票的最好时机(一)# | C++
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param prices int整型vector * @return int整型 ...
2024-01-16
0
201
题解 | #最小花费爬楼梯# | Rust
struct Solution{ } impl Solution { fn new() -> Self { Solution{} } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * ...
2024-01-15
0
190
题解 | #最小花费爬楼梯# | Golang
package main /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param cost int整型一维数组 * @return int整型 */ func minCostClimbingStairs( cost []int ...
2024-01-15
0
188
题解 | #最小花费爬楼梯# | C++
#include <algorithm> #include <cmath> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @...
2024-01-15
0
182
首页
上一页
11
12
13
14
15
16
17
18
19
20
下一页
末页