"题目链接戳这里" 题目描述 You live in a village but work in another village. You decided to follow the straight path between your house (A) and the working place ...
分类:
其他好文 时间:
2018-09-06 02:47:09
阅读次数:
239
sort(cmp=None, key=None, reverse=False) sorted(iterable, cmp=None, key=None, reverse=False) sort是容器的函数,用List的成员函数sort进行排序 sorted是Python的内建函数相同的参数,用bui ...
分类:
其他好文 时间:
2018-09-05 23:42:58
阅读次数:
195
题目: You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. 您想要以楼梯形状形成总共n个硬币,其中每个第k行必须 ...
分类:
其他好文 时间:
2018-09-05 21:56:55
阅读次数:
262
题目链接 https://leetcode.com/problems/most frequent subtree sum/description/ 题目描述 Given the root of a tree, you are asked to find the most frequent subtr ...
分类:
其他好文 时间:
2018-09-05 15:01:13
阅读次数:
114
To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords ...
分类:
其他好文 时间:
2018-09-05 09:04:32
阅读次数:
134
We at HashiCorp are pleased to introduce the new Terraform Provider Enablement project, making it easier than ever for Go developers to give Terraform‘s users access to their favorite clouds and services.
分类:
其他好文 时间:
2018-09-04 13:52:27
阅读次数:
165
John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weibo -- that is, he would select winners from ...
分类:
其他好文 时间:
2018-09-04 01:49:33
阅读次数:
204
服务器端sockforever版 client端 ...
分类:
其他好文 时间:
2018-09-03 02:30:40
阅读次数:
150
1.some():返回一个Boolean,判断是否有元素符合func条件const arr = [1,2,3,4]; arr.some((item)=>{return item>1}) 打印结果: true 2.every():返回一个Boolean,判断每个元素是否符合func条件const ar ...
分类:
Web程序 时间:
2018-09-02 20:18:58
阅读次数:
752
列表 list #list相当于类 li=[2,398,["小明",[1,"alxe"],"小花"],"age",True,8] #通过list类创建对象,对象的变量值叫li列表的格式: 用中括号括起来 用“,”号分割元素 元素可包含数字、字符串、列表(可嵌套在列表里,相当于该列表的一个元素,像该例 ...
分类:
其他好文 时间:
2018-09-02 18:54:12
阅读次数:
294