会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
rosyYY
导航
博客园
首页
新随笔
联系
订阅
管理
公告
上一页
1
···
8
9
10
11
12
13
14
15
16
···
18
下一页
2019年6月2日
leetcode-mid-Linked list-2 Add Two Numbers
摘要: mycode 87.22% 参考: 1、如何把其中一个为None放到while里面去? 2、如何把进位也放进去? 5. Longest Palindromic Substring
阅读全文
posted @ 2019-06-02 21:21 rosyYY
阅读(121)
评论(0)
推荐(0)
leetcode-mid-array-5. Longest Palindromic Substring
摘要: mycode 12.51% 参考:
阅读全文
posted @ 2019-06-02 21:10 rosyYY
阅读(100)
评论(0)
推荐(0)
leetcode-mid-array-334 Increasing Triplet Subsequence-NO
摘要: mycode time limited 参考: 思路:不断更新最大值和最小值,如果elif遇见介于其中的,就可以返回True啦 注意:Python中可以用如下方式表示正负无穷:
阅读全文
posted @ 2019-06-02 20:10 rosyYY
阅读(128)
评论(0)
推荐(0)
leetcode-mid-array-3 Longest Substring Without Repeating Characters
摘要: mycode 99.21% 注意:下面这种方式也可以及时更替最大长度
阅读全文
posted @ 2019-06-02 19:21 rosyYY
阅读(100)
评论(0)
推荐(0)
leetcode-mid-array-49 Group Anagrams
摘要: mycode 95.35% 思路:构建字典 下面是list的加法 if temp not in dic: dic[temp] = [item] else: dic[temp] += [item]
阅读全文
posted @ 2019-06-02 19:09 rosyYY
阅读(98)
评论(0)
推荐(0)
leetcode-mid-array-73 set matrix zeros
摘要: mycode 空间复杂度 m+n 思路:用set把为0元素所在行、列记录下来 注意:注释的方法更快 参考: 常数空间,用第一行第一列来记录
阅读全文
posted @ 2019-06-02 18:27 rosyYY
阅读(119)
评论(0)
推荐(0)
leetcode-mid-array-31 three sum-NO
摘要: my code: time limited 思路: 1、时间复杂度n*n 排序 ( WT1:为什么要排序?)-》构建字典记录value:次数-》两层循环,其中不断不判断第三个数是不是也等于两层循环的值(用到dic的记录次数) 注意,以下的方式就会超时,可能是因为list和dict.keys()的检索
阅读全文
posted @ 2019-06-02 17:09 rosyYY
阅读(138)
评论(0)
推荐(0)
2019年3月13日
ANOVA-方差分析和单尾方差分析
摘要: https://www.cnblogs.com/webRobot/p/6877283.html https://blog.csdn.net/zijinmu69/article/details/80564566 https://github.com/thomas-haslwanter/statsint
阅读全文
posted @ 2019-03-13 14:49 rosyYY
阅读(410)
评论(0)
推荐(0)
2019年2月22日
MTLD -词汇复杂度的指标
摘要: 论文: MTLD, vocd-D, and HD-D: A validation study of sophisticated approaches to lexical diversity assessment 地址: https://link.springer.com/content/pdf/1
阅读全文
posted @ 2019-02-22 15:46 rosyYY
阅读(2235)
评论(0)
推荐(0)
2019年1月23日
shell脚本-2
摘要: http://www.runoob.com/linux/linux-shell-variable.html 字符串可以用单引号,也可以用双引号,也可以不用引号。单双引号的区别跟PHP类似。 单引号字符串中的变量是无效的 双引号里可以出现转义字符 获取字符串长度:echo ${#string}截取字符
阅读全文
posted @ 2019-01-23 17:56 rosyYY
阅读(96)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
18
下一页