extern
extern
全部文章
分类
归档
标签
去牛客网
登录
/
注册
extern的博客
全部文章
(共217篇)
题解 | #把二叉树打印成多行# | Rust
/** * #[derive(PartialEq, Eq, Debug, Clone)] * pub struct TreeNode { * pub val: i32, * pub left: Option<Box<TreeNode>>, * ...
2024-02-23
0
244
题解 | #把二叉树打印成多行# | Golang
package main import . "nc_tools" /* * type TreeNode struct { * Val int * Left *TreeNode * Right *TreeNode * } */ /** * 代码中的类名、...
2024-02-23
0
259
题解 | #把二叉树打印成多行# | C++
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2024-02-23
0
281
题解 | #实现二叉树先序,中序和后序遍历# | Rust
/** * #[derive(PartialEq, Eq, Debug, Clone)] * pub struct TreeNode { * pub val: i32, * pub left: Option<Box<TreeNode>>, * ...
2024-02-21
0
242
题解 | #实现二叉树先序,中序和后序遍历# | Go
package main import . "nc_tools" /* * type TreeNode struct { * Val int * Left *TreeNode * Right *TreeNode * } */ /** * 代码中的类名、...
2024-02-21
0
219
题解 | #实现二叉树先序,中序和后序遍历# | C++
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2024-02-21
0
182
题解 | #在旋转过的有序数组中寻找目标值# | Rust
struct Solution{ } impl Solution { fn new() -> Self { Solution{} } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * ...
2024-02-21
0
174
题解 | #在旋转过的有序数组中寻找目标值# | Go
package main /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型一维数组 * @param target int整型 * @return int整型 */ func search( nu...
2024-02-21
0
202
题解 | #在旋转过的有序数组中寻找目标值# | C++
#include <vector> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector ...
2024-02-21
0
188
题解 | #点击消除# | Rust
use std::io::{self, *}; struct Solution {} impl Solution { pub fn clearStr(self, input: String) -> String { let mut ans = String::fro...
2024-02-20
0
182
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页