extern
extern
全部文章
分类
归档
标签
去牛客网
登录
/
注册
extern的博客
全部文章
(共217篇)
题解 | #包含min函数的栈# | Golang
package main var data = []int{} var min_data = []int{} func min(a int, b int) int { if a < b { return a } return b } func Pu...
2024-02-11
0
194
题解 | #包含min函数的栈# | C++
#include <algorithm> #include <vector> class Solution { std::vector<int> data_; std::vector<int> min_data_; public: ...
2024-02-11
0
213
题解 | #判断是不是二叉搜索树# | Rust
/** * #[derive(PartialEq, Eq, Debug, Clone)] * pub struct TreeNode { * pub val: i32, * pub left: Option<Box<TreeNode>>, * ...
2024-02-10
0
203
题解 | #判断是不是二叉搜索树# | Golang
package main import ( "math" . "nc_tools" ) /* * type TreeNode struct { * Val int * Left *TreeNode * Right *TreeNode...
2024-02-10
0
226
题解 | #判断是不是二叉搜索树# | C++
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2024-02-10
0
164
题解 | #链表的中间结点# | Rust
/** * #[derive(PartialEq, Eq, Debug, Clone)] * pub struct ListNode { * pub val: i32, * pub next: Option<Box<ListNode>> * ...
2024-02-09
0
180
题解 | #链表的中间结点# | Golang
package main import . "nc_tools" /* * type ListNode struct{ * Val int * Next *ListNode * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方...
2024-02-09
0
210
题解 | #链表的中间结点# | C++
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-02-09
0
181
题解 | #第一个只出现一次的字符# | Rust
struct Solution{ } impl Solution { fn new() -> Self { Solution{} } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * ...
2024-02-09
0
189
题解 | #第一个只出现一次的字符# | Golang
package main /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param str string字符串 * @return int整型 */ func FirstNotRepeatingChar( str string )...
2024-02-09
0
176
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页