extern
extern
全部文章
分类
归档
标签
去牛客网
登录
/
注册
extern的博客
全部文章
(共217篇)
题解 | #最小花费爬楼梯# | C++
#include <algorithm> #include <cmath> #include <iostream> #include <vector> using namespace std; class Solution { public: ...
2024-01-29
0
203
题解 | #跳台阶# | Rust
use std::io::{self, *}; struct Solution {} impl Solution { pub fn countWays(&self, n: i32) -> i32 { if n <= 1 { re...
2024-01-28
0
206
题解 | #跳台阶# | Golang
package main import ( "fmt" ) func countWay(n int) int { if n ==1 { return 1 } if n == 2 { return 2 } ...
2024-01-28
0
189
题解 | #跳台阶# | C++
#include <iostream> using namespace std; class Solution { public: int countWays(int n) { if (n <= 1) return 1; if (n <= 2) ret...
2024-01-28
0
186
题解 | #斐波那契数列# | Rust
use std::io::{self, *}; struct Solution{ } impl Solution{ pub fn fib(&self, n: i32) -> i32 { if n <= 2 { return 1; } ...
2024-01-28
0
204
题解 | #斐波那契数列# | Rust
use std::io::{self, *}; struct Solution{ } impl Solution{ pub fn fib(n: i32) -> i32 { if n <= 2 { return 1; } return So...
2024-01-28
0
176
题解 | #斐波那契数列# | Golang
package main import ( "fmt" ) func fib(x int) int { if x <= 2 { return 1 } return fib(x-1) + fib(x-2) } func m...
2024-01-28
0
165
题解 | #斐波那契数列# | C++
#include <iostream> using namespace std; class Solution { public: int fib(int x) { if (x <= 2) return 1; return fib(x-1) + fib(x-...
2024-01-28
0
204
题解 | #对称的二叉树# | Rust
/** * #[derive(PartialEq, Eq, Debug, Clone)] * pub struct TreeNode { * pub val: i32, * pub left: Option<Box<TreeNode>>, * ...
2024-01-27
0
178
题解 | #对称的二叉树# | Golang
package main import . "nc_tools" /* * type TreeNode struct { * Val int * Left *TreeNode * Right *TreeNode * } */ /** * 代码中的类名、...
2024-01-27
0
184
首页
上一页
7
8
9
10
11
12
13
14
15
16
下一页
末页