上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页
摘要: 题目: ![](https://img2023.cnblogs.com/blog/2679751/202308/2679751-20230814211438636-1150888080.png) ``` class Solution { public: Node* head=nullptr; Nod 阅读全文
posted @ 2023-08-14 21:19 孜孜不倦fly 阅读(8) 评论(0) 推荐(0)
摘要: 题目: ![](https://img2023.cnblogs.com/blog/2679751/202308/2679751-20230814204415188-607618190.png) ``` class Solution { public: vector> result; vector p 阅读全文
posted @ 2023-08-14 20:50 孜孜不倦fly 阅读(10) 评论(0) 推荐(0)
摘要: 题目: ![](https://img2023.cnblogs.com/blog/2679751/202308/2679751-20230813130240044-1768447763.png) ``` class Solution { public: void traversal(TreeNode 阅读全文
posted @ 2023-08-13 13:04 孜孜不倦fly 阅读(8) 评论(0) 推荐(0)
摘要: 题目: ![](https://img2023.cnblogs.com/blog/2679751/202308/2679751-20230812232217818-587944382.png) ``` class Solution { public: int sumNums(int n) { //首 阅读全文
posted @ 2023-08-12 23:27 孜孜不倦fly 阅读(7) 评论(0) 推荐(0)
摘要: 题目: class Solution { public: int m, n, cnt, res=0; int digit(int n){ int sum = 0; while(n){ sum += n%10; n/=10; } return sum; } void traversal(int i, 阅读全文
posted @ 2023-08-11 21:03 孜孜不倦fly 阅读(10) 评论(0) 推荐(0)
摘要: 选中多行后: 注释: 先CTRL+K,然后CTRL+C 取消注释: 先CTRL+K,然后CTRL+U 阅读全文
posted @ 2023-08-11 11:12 孜孜不倦fly 阅读(2541) 评论(0) 推荐(0)
摘要: 题目: ![](https://img2023.cnblogs.com/blog/2679751/202308/2679751-20230810210325394-125626604.png) ``` class Solution { public: int row, col; bool trave 阅读全文
posted @ 2023-08-10 21:16 孜孜不倦fly 阅读(20) 评论(0) 推荐(0)
摘要: 题目: class Solution { public: //本方法运用两层递归,非常巧妙 bool traversal(TreeNode* root1, TreeNode* root2){ //判断当前两个节点的递归 if(root2==nullptr) return true; //终止条件:如 阅读全文
posted @ 2023-08-09 21:05 孜孜不倦fly 阅读(11) 评论(0) 推荐(0)
摘要: 题目: ![](https://img2023.cnblogs.com/blog/2679751/202308/2679751-20230808213146832-2111953032.png) ``` class Solution { public: bool traversal(TreeNode 阅读全文
posted @ 2023-08-08 21:38 孜孜不倦fly 阅读(9) 评论(0) 推荐(0)
摘要: 题目: ![](https://img2023.cnblogs.com/blog/2679751/202308/2679751-20230807212857726-1306303710.png) **解法一:** ``` class Solution { public: void traversal 阅读全文
posted @ 2023-08-07 21:30 孜孜不倦fly 阅读(14) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页