需要热奶茶
需要热奶茶
全部文章
分类
归档
标签
去牛客网
登录
/
注册
需要热奶茶的博客
全部文章
(共7篇)
题解 | 螺旋矩阵
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param matrix int整型vector<vector<>> ...
2025-10-14
0
29
题解 | 编辑距离(一)
#include <vector> class Solution { public: /** * dp[i][j] str1[1]——[i] str2[1]——[j]的操作数 * 1.str1 str2 的长度差每增加一个,操作数加一个 * 2.不同...
2025-10-09
0
47
题解 | 买卖股票的最好时机(一)
#include <algorithm> class Solution { public: /** * min 日前最低价格 * max 当前最高利润 * 每日以当前价格减去日前最低价格,对比当前最高利润,较大者为新最高利润。 */ ...
2025-10-09
0
50
题解 | 表达式求值
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 返回表达式的值 * @param s string字符串 待计算的表达式 * @return in...
2025-09-09
0
62
题解 | 好串
#include <iostream> #include <string> #include <stack> using namespace std; int main() { string str; cin>>str; in...
2025-09-09
0
64
题解 | 括号配对问题
#include <iostream> #include <stack> #include <string> using namespace std; int main() { string str; cin >> str; ...
2025-09-09
0
51
题解 | 两直线交点
#include<bits/stdc++.h> using namespace std; struct point { double x, y; point(double A, double B) { x = A, y = B; } po...
2025-09-07
0
39