摘要:
比较简单的模拟题。#905class Solution(object): def sortArrayByParity(self, A): """ :type A: List[int] :rtype: List[int] """ ret = [] for i in A: if i % 2 ... 阅读全文
摘要:
没错,我就是弱题收割机。select name, population, area from World where area > 3000000 or population > 25000000;class Solution(object): def sortedSquares(self, A): """ :type A: List[int] :r... 阅读全文
摘要:
看描述就知道是一道搜索题,不过判断条件有点多,需要全部位置都踩一遍,相当于一笔画?代码其实有点潦草了,因为额外的有点工作的事情,最近时间可能不多了。class Solution(object): def checkPath(self, grid, n, m): for i in range(n): for j in range(m): ... 阅读全文