std::forward argument: Returns an rvalue reference to arg if arg is not an lvalue reference; If arg is an lvalue reference, the function returns arg w ...
分类:
编程语言 时间:
2017-09-12 16:09:32
阅读次数:
199
Hope for the best, but prepare for the worst. 做最好的期望,做最坏的打算。 Always remember that quotes about being ourselves are all about being strong and being co ...
分类:
其他好文 时间:
2017-09-11 23:32:34
阅读次数:
362
1、UVa 1401 Remember the Word 题意:给出n个字符串集合,问其有多少种组合方式形成目标字符串。 思路:对n个字符串集合建立Trie树,保存每个结点的字符串的顺序编号。然后对这棵树查找目标字符串每一个后缀的前缀字符串,累加。 1 #include<cstdio> 2 #inc ...
分类:
其他好文 时间:
2017-09-10 23:45:51
阅读次数:
231
Notes: Lots of places need to be remember: Edge cases: 1. Only one word, still need to be calculated as it represents. 2. All unique chars that not be ...
分类:
其他好文 时间:
2017-09-05 17:47:14
阅读次数:
114
Note: 1. Remember to intial (0, -1) since this kind of problems need a starting point. ...
分类:
其他好文 时间:
2017-09-03 16:39:33
阅读次数:
103
Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7091 Accepted Submission(s): 3169 Problem Descrip ...
分类:
其他好文 时间:
2017-08-26 17:02:26
阅读次数:
140
1、登录过程中的记住我功能如图: 2、这样在登录认证的时候,客户端会传递两个cookie:remember_token和Tsession 3、即使客户端不传递cookie中的Tsession,只传递remember_token的值,也能认证成功 4、当然只传递Tsession也会认证成功 5、如果登 ...
分类:
其他好文 时间:
2017-08-24 18:00:33
阅读次数:
188
1. Remember to add it again after counting since there are still remaining information in cache. ...
分类:
其他好文 时间:
2017-08-23 14:52:16
阅读次数:
163
1 Remember : Always make integer validation at hasNext() since it is too late to validate it at next(). ...
分类:
其他好文 时间:
2017-08-21 14:46:12
阅读次数:
124
简单记录一下混合使用anaconda和youcompleteme的经历 最近python写得比较多,使用vim+youcompleteme总觉得补全好差,任何第三方库都搞不定,想不通这玩意这么菜还怎么用?之前我的archlinux+普通python+vim+ycm不是好好的吗? 之前忙,没时间管这事 ...
分类:
其他好文 时间:
2017-08-19 11:14:01
阅读次数:
311