上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 57 下一页
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14127491.html 存在重复的元素 题目链接:https://leetcode-cn.com/problems/contains-duplicate/ 题目 给定一个整数数组,判断是否存在重复元素。 如 阅读全文
posted @ 2020-12-13 00:45 萍2樱释 阅读(127) 评论(6) 推荐(0)
摘要: 此博客链接: 从中序与后序遍历序列构造二叉树 题目链接:https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/ 题目 根据一棵树的中序遍历与后序遍历构造二叉树。 注意:你 阅读全文
posted @ 2020-12-13 00:27 萍2樱释 阅读(95) 评论(0) 推荐(0)
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14118349.html 路径总和 题目链接:https://leetcode-cn.com/problems/path-sum/ 题目 给定一个二叉树和一个目标和,判断该树中是否存在根节点到叶子节点的路径, 阅读全文
posted @ 2020-12-11 00:54 萍2樱释 阅读(63) 评论(0) 推荐(0)
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14111516.html 对称二叉树(47min) 题目链接:https://leetcode-cn.com/problems/symmetric-tree/submissions/ 题目 给定一个二叉树,检 阅读全文
posted @ 2020-12-09 23:06 萍2樱释 阅读(134) 评论(1) 推荐(0)
摘要: 此博客链接: 阅读全文
posted @ 2020-12-09 22:52 萍2樱释 阅读(67) 评论(0) 推荐(0)
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14105476.html 1.分析 1.1贪吃蛇游戏规则 要求蛇头吃小球,每吃一个小球后,蛇身就变长一点,当蛇头碰到蛇身时,游戏结束。 1.2分析 根据作业要求,蛇能转换方向,自动前进,碰撞检测,随机障碍。 阅读全文
posted @ 2020-12-08 20:28 萍2樱释 阅读(327) 评论(0) 推荐(0)
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14102478.html 二叉树的深度 题目链接:https://leetcode-cn.com/problems/maximum-depth-of-binary-tree/submissions/ 题目 给 阅读全文
posted @ 2020-12-08 14:32 萍2樱释 阅读(388) 评论(3) 推荐(0)
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14097221.html 二叉树的层次遍历 题目链接:https://leetcode-cn.com/problems/binary-tree-level-order-traversal/ 题目 给你一个二叉 阅读全文
posted @ 2020-12-07 15:05 萍2樱释 阅读(101) 评论(2) 推荐(0)
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14092344.html 二叉树的后序遍历 题目链接:https://leetcode-cn.com/problems/binary-tree-postorder-traversal/ 题目 给定一个二叉树, 阅读全文
posted @ 2020-12-06 12:31 萍2樱释 阅读(149) 评论(2) 推荐(0)
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14089282.html 二叉树的中序遍历 题目 给定一个二叉树的根节点 root ,返回它的 中序 遍历。 示例 1: 输入:root = [1,null,2,3]输出:[1,3,2]示例 2: 输入:ro 阅读全文
posted @ 2020-12-05 13:49 萍2樱释 阅读(303) 评论(3) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 57 下一页