青瓦梦滋
青瓦梦滋
全部文章
分类
归档
标签
去牛客网
登录
/
注册
青瓦梦滋的博客
全部文章
(共4篇)
题解 | 二叉搜索树与双向链表
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ class ...
2025-05-16
0
9
题解 | 二叉搜索树与双向链表
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } };*/ class ...
2025-05-15
0
9
题解 | 栈的压入、弹出序列
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param pushV int整型vector * @param popV int整型v...
2025-04-19
0
22
题解 | 字符串最后一个单词的长度
#include <iostream> #include <string> using namespace std; int main() { string s1; getline(cin,s1); size_t pos = s1.rfind(' ...
2025-02-19
0
57