- 博客(2)
- 收藏
- 关注
原创 mysql datediff 力扣题目
mysql datediff函数使用实例,题目来源力扣 题目:https://leetcode-cn.com/problems/rising-temperature/ Weather ±—±-----------±------------+ | id | recordDate | Temperature | ±—±-----------±------------+ | 1 | 2015-01-01 | 10 | | 2 | 2015-01-02 | 25 | | 3
2021-05-10 19:52:32
113
原创 双指针,删除有序数组重复项,个人理解。
删除有序数组中的重复项 5.10 ##每日一题 public int removeDuplicates(int[] nums) { int j=0; for(int i =0;i<nums.length;i++){ if(nums[i]!=nums[j]){ nums[++j]=nums[i]; } } return j+1; } 输入:n
2021-05-10 18:28:15
65
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人