def compareStrings(A, B): # write your code here if len(A) < len(B): return False if len(A) == len(B): return(sorted(A) == sorted(B)) for i in B: ... ...
分类:
其他好文 时间:
2018-03-11 17:28:33
阅读次数:
140
def anagrams(self, strs): # write your code here L = [i if len(i) 1] ...
分类:
其他好文 时间:
2018-03-11 17:16:40
阅读次数:
166
def removeDuplicates(self, nums): # write your code here if nums == []: return 0 index,count = 0, 1 for i in range(1, len(nums)): if nums[index] == nu... ...
分类:
编程语言 时间:
2018-03-11 17:10:47
阅读次数:
183
对于邻接表,G[N]为 指针数组 ,对应矩阵 每行一个链表 ,只存非0元素 指针数组里的每一个指针都是一个 单链表的头指针 ,单链表里每个 节点 里存储的是图中 每条边 的信息。 邻接表包括一个 顶点表 和一个 边表 。顶点表包括顶点和指向下一个邻接点的指针, 边表存储的是邻接点点序号和指向下一个的 ...
分类:
其他好文 时间:
2018-03-11 14:31:53
阅读次数:
196
[CodePlus 2017 11月赛&洛谷P4058]木材 Description 有 n棵树,初始时每棵树的高度为 Hi ,第 i棵树每月都会长高 Ai。现在有个木料长度总量为 S的订单,客户要求每块木料的长度不能小于 L ,而且木料必须是整棵树(即不能为树的一部分)。现在问你最少需要等多少个月 ...
分类:
其他好文 时间:
2018-03-11 14:26:38
阅读次数:
144
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2060 题目描述: There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = ...
分类:
其他好文 时间:
2018-03-11 14:18:35
阅读次数:
228
PEP 8——Python编码风格指南标签(空格分隔): Python PEP8 编码规范原文:https://lizhe2004.gitbooks.io/code-style-guideline-cn/content/python/python-pep8.html https://python.f ...
分类:
编程语言 时间:
2018-03-11 12:08:56
阅读次数:
202
安装shutter 1.添加安装包软件源 sudo add apt repository ppa:shutter/ppa 2.更新软件源并且安装 sudo apt get update sudo apt get install shutter 3.查看是否安装成功 打开我们的全部应用程序,搜索shu ...
分类:
系统相关 时间:
2018-03-11 12:06:09
阅读次数:
177
一、MyBatis的发展 MyBatis 是apache的一个开源项目iBatis, 2010年这个项目由apache software foundation迁移到google code, 并且改名MyBatis。2013年迁移到Github。 MyBatis是一个持久层框架,它将jdbc的操作数据 ...
分类:
其他好文 时间:
2018-03-11 02:51:45
阅读次数:
167