extern
extern
全部文章
分类
归档
标签
去牛客网
登录
/
注册
extern的博客
全部文章
(共217篇)
题解 | #用两个栈实现队列# | Python
# -*- coding:utf-8 -*- class Solution: def __init__(self): self.stack1 = [] self.stack2 = [] def push(self, node): sel...
2024-01-24
0
162
题解 | #用两个栈实现队列# | Golang
package main var stack1 [] int var stack2 [] int func Push(node int) { stack1 = append(stack1, node) } func Pop() int{ ans := stack1[0] ...
2024-01-24
0
195
题解 | #用两个栈实现队列# | C++
class Solution { void stack1to2() { while (!stack1.empty()) { stack2.push(stack1.top()); stack1.pop(); } ...
2024-01-24
0
174
题解 | #判断是不是平衡二叉树# | Rust
/** * #[derive(PartialEq, Eq, Debug, Clone)] * pub struct TreeNode { * pub val: i32, * pub left: Option<Box<TreeNode>>, * ...
2024-01-23
0
148
题解 | #判断是不是平衡二叉树# | Golang
package main import . "nc_tools" /* * type TreeNode struct { * Val int * Left *TreeNode * Right *TreeNode * } */ /** * 代码中的类名、...
2024-01-23
0
193
题解 | #二叉树的镜像# | C++
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2024-01-23
0
178
题解 | #不同路径的数目(一)# | Rust
struct Solution{ } impl Solution { fn new() -> Self { Solution{} } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * ...
2024-01-22
0
234
题解 | #不同路径的数目(一)# | Golang
package main /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param m int整型 * @param n int整型 * @return int整型 */ func uniquePaths( m int , n ...
2024-01-22
0
152
题解 | #不同路径的数目(一)# | C++
#include <vector> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param m int整型 * @par...
2024-01-22
0
177
题解 | #有效括号序列# | Rust
struct Solution{ } impl Solution { fn new() -> Self { Solution{} } /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * ...
2024-01-21
0
177
首页
上一页
9
10
11
12
13
14
15
16
17
18
下一页
末页