extern
extern
全部文章
分类
归档
标签
去牛客网
登录
/
注册
extern的博客
全部文章
(共217篇)
题解|#判断t1树中是否有与t2树完全相同的子树#|Rust
/** * #[derive(PartialEq, Eq, Debug, Clone)] * pub struct TreeNode { * pub val: i32, * pub left: Option<Box<TreeNode>>, * ...
2024-02-12
0
208
题解|#判断t1树中是否有与t2树完全相同的子树#|Go
package main /* * type TreeNode struct { * Val int * Left *TreeNode * Right *TreeNode * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 ...
2024-02-12
0
229
题解|#判断t1树中是否有与t2树完全相同的子树#|C++
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2024-02-12
0
192
题解 | #二进制中1的个数# | Rust
struct Solution{ } impl Solution { fn new() -> Self { Solution{} } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * ...
2024-02-12
0
194
题解 | #二进制中1的个数# | Golang
package main import "math" /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @return int整型 */ func NumberOf1( n in...
2024-02-12
0
181
题解 | #二进制中1的个数# | C++
#include <climits> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @re...
2024-02-12
0
127
题解 | #左叶子之和# | Rust
/** * #[derive(PartialEq, Eq, Debug, Clone)] * pub struct TreeNode { * pub val: i32, * pub left: Option<Box<TreeNode>>, * ...
2024-02-12
0
151
题解 | #左叶子之和# | Golang
package main import ( . "nc_tools" ) /* * type TreeNode struct { * Val int * Left *TreeNode * Right *TreeNode * } */ /** * ...
2024-02-12
0
196
题解 | #左叶子之和# | C++
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2024-02-12
0
199
题解 | #包含min函数的栈# | Python3
# -*- coding:utf-8 -*- class Solution: def __init__(self) -> None: self.data = list() self.min_data = list() def push(self...
2024-02-11
0
175
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页