摘要: 题目链接:https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/ 给定一个排序数组,你需要在原地删除重复出现的元素,使得每个元素只出现一次,返回移除后数组的新长度。 不要使用额外的数组空间,你必须在原地修改输入数组并 阅读全文
posted @ 2019-08-17 20:06 wydxry 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://leetcode-cn.com/problems/rectangle-overlap/ 矩形以列表 [x1, y1, x2, y2] 的形式表示,其中 (x1, y1) 为左下角的坐标,(x2, y2) 是右上角的坐标。 如果相交的面积为正,则称两矩形重叠。需要明确的是,只 阅读全文
posted @ 2019-08-17 11:06 wydxry 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 SQLyog v10.2 3 MySQL - 5.5.27 : Database - restrant 4 ********************************************************************* 5 */ 6 7 8 /*!40101 SET NAMES utf8 */; 9 10 /... 阅读全文
posted @ 2019-08-17 09:58 wydxry 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://leetcode-cn.com/problems/subtree-of-another-tree/ 给定两个非空二叉树 s 和 t,检验 s 中是否包含和 t 具有相同结构和节点值的子树。s 的一个子树包括 s 的一个节点和这个节点的所有子孙。s 也可以看做它自身的一棵子树 阅读全文
posted @ 2019-08-17 08:53 wydxry 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://leetcode-cn.com/problems/longest-continuous-increasing-subsequence/ 给定一个未经排序的整数数组,找到最长且连续的的递增序列。 示例 1: 输入: [1,3,5,4,7]输出: 3解释: 最长连续递增序列是 阅读全文
posted @ 2019-08-17 08:26 wydxry 阅读(205) 评论(0) 推荐(0) 编辑
Live2D