extern
extern
全部文章
分类
归档
标签
去牛客网
登录
/
注册
extern的博客
全部文章
(共217篇)
题解 | #最大公约数# | C++
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 求出a、b的最大公约数。 * @param a int整型 * @param b int整型 ...
2024-02-02
0
143
题解 | #买卖股票的最好时机(一)# | Rust
use std::io::{self, *}; struct Solution { prices : std::vec::Vec<i32> } impl Solution { fn new(p : std::vec::Vec<i32>) -> Sel...
2024-02-01
0
223
题解 | #买卖股票的最好时机(一)# | Golang
package main import ( "fmt" ) type Solution struct { prices []int } func (t Solution) getMaxProfit() int { max_profit := 0 ...
2024-02-01
0
219
题解 | #买卖股票的最好时机(一)# | C++
#include <algorithm> #include <iostream> #include <utility> #include <vector> using namespace std; class Soultion { private:...
2024-02-01
0
208
题解 | #跳台阶扩展问题# | Rust
use std::io::{self, *}; struct Solution { n : i32 } impl Solution { fn countWays(&self) -> i32 { let mut prefix : i32 = 0; ...
2024-01-30
0
171
题解 | #跳台阶扩展问题# | Golang
package main import ( "fmt" ) type Solution struct { N int } func (s Solution) countWays() int { prefix := 0 ans := 0 ...
2024-01-30
0
165
题解 | #跳台阶扩展问题# | C++
#include <iostream> using namespace std; class Solution{ public: int countWays(int n) { int prefix = 0; int ans = 0; for (int i ...
2024-01-30
0
174
题解 | #最小花费爬楼梯# | Rust
use std::io::{self, *}; struct Solution{ costs: std::vec::Vec<i32>, n: i32 } impl Solution{ fn minCosts(&self) -> i32 { ...
2024-01-29
0
213
题解 | #最小花费爬楼梯# | Rust
use std::io::{self, *}; struct Solution{ costs: std::vec::Vec<i32>, n: i32 } impl Solution{ fn minCosts(&self) -> i32 { ...
2024-01-29
0
187
题解 | #最小花费爬楼梯# | Golang
package main import ( "fmt" ) func min(a int, b int) int { if a < b { return a } return b } func minCosts(cost...
2024-01-29
0
157
首页
上一页
6
7
8
9
10
11
12
13
14
15
下一页
末页