摘要: #include<iostream> #include<bits/stdc++.h> using namespace std; /** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; 阅读全文
posted @ 2025-03-05 20:40 yizhixiaozhu 阅读(2) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param input int整型vector * @param k int整型 * @return int整型vector */ vector<in 阅读全文
posted @ 2025-03-05 19:25 yizhixiaozhu 阅读(1) 评论(0) 推荐(0) 编辑
摘要: string转int #include <iostream> #include <string> using namespace std; int main() { char* s = "1234"; string str("5678"); int intS = atoi(s); //此写法会报错 阅读全文
posted @ 2025-03-04 20:02 yizhixiaozhu 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 中序遍历即可。只需要记录一个pre指针即可。 高分答案也太绕了吧 class Solution { public: TreeNode* Convert(TreeNode* pRootOfTree) { if(pRootOfTree == nullptr) return nullptr; TreeNo 阅读全文
posted @ 2025-03-04 19:13 yizhixiaozhu 阅读(0) 评论(0) 推荐(0) 编辑
摘要: C++非递归前序遍历 /** * struct TreeNode { * int val; * struct TreeNode *left;\images\20211111\392807_1636599059575\FE67E09E9BA5661A7AB9DF9638FB1FAC * struct 阅读全文
posted @ 2025-03-04 18:16 yizhixiaozhu 阅读(5) 评论(0) 推荐(0) 编辑
摘要: getline(cin,str);//str为string类型 阅读全文
posted @ 2025-02-25 19:29 yizhixiaozhu 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 1.左对齐printf(“%d\n”,101010);默认为左对齐。 printf(“%-10d\n”,101010);“-”表示左对齐,在数字宽度前面加上“-”号即可。说明:数字宽度为10,如果要打印的位数小于10,则在后面补足空格;如果要打印的位数大于10,则打印所有的数字,不会截断。 2.右对 阅读全文
posted @ 2025-02-15 17:15 yizhixiaozhu 阅读(36) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/cukor-zhong-520/p/16950326.html 阅读全文
posted @ 2024-12-31 09:57 yizhixiaozhu 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 机可能存在缓慢的HTTP拒绝服务攻击 目标URL存在http host头攻击漏洞 很多解决方案: https://blog.csdn.net/baidu_35030309/article/details/114638107 jquery升级jquery-3.1.1.min.js 搭配 jquery- 阅读全文
posted @ 2024-01-29 15:34 yizhixiaozhu 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 链接:https://blog.csdn.net/weixin_44947701/article/details/116836176 阅读全文
posted @ 2023-06-30 11:04 yizhixiaozhu 阅读(5) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示