- 博客(3)
- 收藏
- 关注
原创 lengthOfLongestSubstring
class Solution(object): def lengthOfLongestSubstring(self, s): """ :type s: str :rtype: int """ res = [] for c in s: res.append(c) ...
2019-07-23 14:00:42
570
原创 Groovy文件写入方法
append() append方法不会覆盖文件本来已有的内容 def pth = 'c:\\' def f = new File(des, 'test.txt') f.append('test file') writer方法 会覆盖文件本来有的内容 def pth = 'c:\\' def f = new File(des, 'test.txt') f.withWriter('utf-8'){w...
2019-07-23 13:58:40
3329
原创 合并线段
每一条线都用一个对象替换 package MergeLine; import java.util.ArrayList; import java.util.List; public class LineClass implements Comparable{ private int x; private int y; public LineClass(int x, ...
2018-09-03 17:08:39
1889
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅