• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

waterrzhang

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

2020年9月15日

树的高度

摘要: /** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ class Solution { public: /** * * @param root TreeNode类 * 阅读全文

posted @ 2020-09-15 15:24 waterrzhang 阅读(103) 评论(0) 推荐(0)

层序遍历

摘要: /** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ class Solution { public: /** * * @param root TreeNode类 * 阅读全文

posted @ 2020-09-15 15:16 waterrzhang 阅读(63) 评论(0) 推荐(0)

翻转链表

摘要: /* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: ListNode* ReverseList(List 阅读全文

posted @ 2020-09-15 14:43 waterrzhang 阅读(103) 评论(0) 推荐(0)

2020年9月10日

图元识别

摘要: //给图元编号 #include <iostream> #include <queue> using namespace std; int pathLength = 0; struct position { int col; int row; }; int labelComponent(int** 阅读全文

posted @ 2020-09-10 15:54 waterrzhang 阅读(125) 评论(0) 推荐(0)

2020年9月9日

迷宫老鼠

摘要: #include <iostream> #include <stack> using namespace std; struct position { int row; int col; }; bool findPath(int** maze, int row, int col) //maze已经扩 阅读全文

posted @ 2020-09-09 19:38 waterrzhang 阅读(86) 评论(0) 推荐(0)

2020年9月1日

四则运算

摘要: #include <iostream> #include <string> #include <stack> using namespace std; bool cmpPriority(char top, char cur) //top的优先级高于cur时,返回ture,此处不将当前值与‘(’对比 阅读全文

posted @ 2020-09-01 11:26 waterrzhang 阅读(126) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3