上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 57 下一页
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14085288.html 二叉树的前序遍历 题目链接:https://leetcode-cn.com/problems/binary-tree-preorder-traversal/ 题目 给你二叉树的根节点 阅读全文
posted @ 2020-12-04 13:15 萍2樱释 阅读(284) 评论(0) 推荐(0)
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14080960.html 前言 通过看前辈对算法的分析,对于数据结构的其实就是数组和链表的组合这点,感觉如获至宝,前辈建议先刷二叉树,找套路,我这就开始刷刷二叉树,找套路(虽然疫情期间一直刷二叉树,但是由于时 阅读全文
posted @ 2020-12-03 16:15 萍2樱释 阅读(137) 评论(0) 推荐(0)
摘要: 此博客连接:https://www.cnblogs.com/ping2yingshi/p/14073134.html 计算质数 题目链接:https://leetcode-cn.com/problems/count-primes/ 题目 统计所有小于非负整数 n 的质数的数量。 示例 1: 输入:n 阅读全文
posted @ 2020-12-02 12:46 萍2樱释 阅读(399) 评论(5) 推荐(0)
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14066225.html 在排序数组中查找元素的第一个和最后一个位置 题目链接:https://leetcode-cn.com/problems/find-first-and-last-position-of 阅读全文
posted @ 2020-12-01 09:15 萍2樱释 阅读(228) 评论(1) 推荐(0)
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14065965.html 飞机游戏 慕课地址:https://www.icourse163.org/course/HHU-1206797807 。 1.分析 飞机大战游戏中,要求包括移动飞机、发射子弹、敌机移 阅读全文
posted @ 2020-12-01 02:20 萍2樱释 阅读(210) 评论(0) 推荐(0)
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14065888.html 两个数组的交集 II 题目链接:https://leetcode-cn.com/problems/intersection-of-two-arrays-ii/ 题目 给定两个数组,编 阅读全文
posted @ 2020-12-01 01:13 萍2樱释 阅读(104) 评论(0) 推荐(0)
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14056380.html 重复N次的元素 题目链接:https://leetcode-cn.com/problems/n-repeated-element-in-size-2n-array/ 题目 在大小为 阅读全文
posted @ 2020-11-29 15:18 萍2樱释 阅读(104) 评论(0) 推荐(0)
摘要: 此博客链接:https://www.cnblogs.com/ping2yingshi/p/14054909.html 单词规律 题目链接:https://leetcode-cn.com/problems/word-pattern/ 题目 给定一种规律 pattern 和一个字符串 str ,判断 s 阅读全文
posted @ 2020-11-28 23:44 萍2樱释 阅读(125) 评论(0) 推荐(0)
摘要: 此博客连接:https://www.cnblogs.com/ping2yingshi/p/14054440.html 存在重复元素2 题目链接:https://leetcode-cn.com/problems/contains-duplicate-ii/submissions/ 题目 给定一个整数数 阅读全文
posted @ 2020-11-28 22:01 萍2樱释 阅读(114) 评论(0) 推荐(0)
摘要: 此博客链接: 翻转对 题目链接:https://leetcode-cn.com/problems/reverse-pairs/ 给定一个数组 nums ,如果 i < j 且 nums[i] > 2*nums[j] 我们就将 (i, j) 称作一个重要翻转对。 你需要返回给定数组中的重要翻转对的数量 阅读全文
posted @ 2020-11-28 10:21 萍2樱释 阅读(104) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 57 下一页