q qq qqq qqqq qqqqq one qqqqqq two www three ww three wwwwww ksksks rrr rr ss sss xx xxx ...
分类:
其他好文 时间:
2019-09-13 15:12:25
阅读次数:
70
A game on an?undirected?graph is played by two players, Mouse and Cat, who alternate turns. The graph is given as follows: is a list of all nodes such ...
分类:
其他好文 时间:
2019-09-13 01:29:43
阅读次数:
109
题意: 给定一个长度为 $n$ 的序列,并得到了 $k$ 次操作的机会,每一次操作就是把其中一个数的值加 $1$。 求合理安排这 $k$ 次操作,使得结果序列的中位数最大。 $1 \le n \le 2*10^5,1 \le k \le 10^9$ 分析: 我们可以用贪心策略想,如果给原始序列小于中 ...
分类:
其他好文 时间:
2019-09-13 01:26:29
阅读次数:
83
You are given an array aa consisting of nn integers, and qq queries to it. ii th query is denoted by two integers lili and riri. For each query, you h ...
分类:
其他好文 时间:
2019-09-12 15:06:55
阅读次数:
85
单例方式 通过类的绑定方法 通过装饰器 通过元类 通过模块: sort 与 sorted 区别: 1. sort 是应用在 list 上的方法,属于列表的成员方法,sorted 可以对所有可迭代的对象进行排序操作。 2. ist 的 sort 方法返回的是对已经存在的列表进行操作,而内建函数 sor ...
分类:
其他好文 时间:
2019-09-12 13:30:24
阅读次数:
63
Two strings are anagrams if they are permutations of each other. For example, "aaagmnrs" is an anagram of "anagrams". Given an array of strings, remov ...
分类:
其他好文 时间:
2019-09-12 09:19:34
阅读次数:
167
# 向量 ##组合函数c()创建向量 a <- c(1,2,5,3,6,-2,4) #数值型 b<- c('one',"two",'three') #字符型 c <- c(TRUE,TRUE,F,T,F) #逻辑型 # 标量,只含有一个元素的向量,例如 f <- 3 a[3] a[-1] a[c(-... ...
分类:
其他好文 时间:
2019-09-11 13:41:51
阅读次数:
79
前言 双因子认证:双因子认证(2FA)是指结合密码以及实物(信用卡、SMS手机、令牌或指纹等生物标志)两种条件对用户进行认证的方法。--百度百科 跟我一样"老"的网瘾少年想必一定见过买点卡后上面送的密保(类似但不完全一样),还有"将军令",以及网银的网盾,是一种二次验证的机制;它通常是6位的数字,每 ...
分类:
其他好文 时间:
2019-09-11 13:34:06
阅读次数:
235
artillery 是一个不错的负载测试套件,功能很强大,支持多协议 安装 npm install -g artillery --unsafe-perm npm install -g artillery --unsafe-perm npm install -g artillery --unsafe- ...
分类:
其他好文 时间:
2019-09-11 12:10:41
阅读次数:
158
题目描述: 题目思路: 这道题目比较简单,一开始我的思路是把两个链表里存储的数变成int类型,然后两个int类型相加,在把加和sum分解成个位,十位,百位,然后把分解之后的数据再插入到链表中即可,所以一开始的代码是这样的: 提交之后发现,LeetCode的测试数据是 这样的话,不论是用int类型还是 ...
分类:
其他好文 时间:
2019-09-11 09:34:05
阅读次数:
66