会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
rosyYY
导航
博客园
首页
新随笔
联系
订阅
管理
公告
2019年6月17日
leetcode-hard-array-287. Find the Duplicate Number
摘要: mycode 77.79% 参考
阅读全文
posted @ 2019-06-17 14:56 rosyYY
阅读(103)
评论(0)
推荐(0)
leetcode-hard-array-128. Longest Consecutive Sequence
摘要: mycode 92.62% 参考
阅读全文
posted @ 2019-06-17 14:51 rosyYY
阅读(101)
评论(0)
推荐(0)
leetcode-hard-array-41. First Missing Positive-NO
摘要: mycode Runtime Error Message:Line 11: MemoryError Last executed input:[2147483647] 44.76% class Solution(object): def firstMissingPositive(self, nums)
阅读全文
posted @ 2019-06-17 13:05 rosyYY
阅读(111)
评论(0)
推荐(0)
leetcode-hard-array-11 Container With Most Water -NO
摘要: mycode time limited 参考: 把求水的容量转换成求面积 假设: 第i条和第j条(i < j)线和x轴围起来面积最大,那么最大面积为Sij = min(ai, aj) * (j - i); 那么: 在j的右边没有比他更高的线 在i的左边也没有比他更高的线 在j的右边没有比他更高的线
阅读全文
posted @ 2019-06-17 11:54 rosyYY
阅读(98)
评论(0)
推荐(0)
leetcode-hard-array-454 4sum II-NO
摘要: mycode 过不了。。。我也不知道为什么。。。 参考
阅读全文
posted @ 2019-06-17 11:18 rosyYY
阅读(110)
评论(0)
推荐(0)
leetcode-hard-array-238. Product of Array Except Self-NO
摘要: mycode 99.47%
阅读全文
posted @ 2019-06-17 10:48 rosyYY
阅读(105)
评论(0)
推荐(0)
leetcode-hard-array-54. Spiral Matrix-NO
摘要: mycode 思路:这种方格图一定要预先设置定位的变量,例如最大的长、宽,变化中的长、宽,在while循环中也要不断判断是否满足break条件
阅读全文
posted @ 2019-06-17 10:04 rosyYY
阅读(175)
评论(0)
推荐(0)