呃这题的Hint写着splay启发式合并……但是蒟蒻不懂T_T只好写个简单的LCT来蒙混过关,就是时间效率上差劲的很……不过能够一次AC心情也是蛮愉悦的~ 1 /************************************************************** 2 ...
分类:
其他好文 时间:
2015-01-10 12:28:58
阅读次数:
254
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input case...
分类:
其他好文 时间:
2015-01-09 00:16:53
阅读次数:
233
Email中的SearchView由于加上我们自己的style之后出现了textview太靠上的问题。如下图:
那么而Searchview又是一个单独控件,其布局在framwork里面,组里的大神帮我看过,
要想改变只能继承,重新给它设置一个新的布局,不过那样工作量将会比较大。
网上有例子是改hint颜色的,然后我就根据其代码解决了我自己的bug。代码如下:...
分类:
移动开发 时间:
2015-01-08 13:28:06
阅读次数:
214
Description
有一字符串,包含n个字符。写一函数,将此字符串中从第m个字符开始的全部字符复制成为另一个字符串。
Input
数字n 一行字符串数字m
Output
从m开始的子串
Sample Input
6
abcdef
3
Sample Output
cdef
HINT
主函数已给定如下,...
分类:
其他好文 时间:
2015-01-08 09:42:28
阅读次数:
153
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:
其他好文 时间:
2015-01-08 09:41:06
阅读次数:
187
hint字体受EditText的text字体影响,即受android:typeface的影响。android:typeface有三个取值:“sans”,“serif”,“monospace”,看源码:
setInputType中:
if (isPassword) {
setTransformationMethod(PasswordTransformationMeth...
分类:
其他好文 时间:
2015-01-07 18:53:58
阅读次数:
160
View部分1. 生成提示文字field($model, 'freightAddedFee')->textInput()->hint('大于0的整数') ?>2. 文本框内 placeholder,其实这个本来就是html5带的属性。field($model, 'mobile', $input_cl...
分类:
其他好文 时间:
2015-01-06 11:33:28
阅读次数:
149
在ORACLE优化器无法用上合理索引的情况下,利用HINT强制指定索引。
继续“oracle 性能优化操作七”的例子,ORACLE缺省认定,表中列的值是在所有数据行中均匀分布的,
也就是说,在一百万数据量下,每种DisposalCourseFlag值各有12.5万数据行与之对应。
假设SQL搜索条件DisposalCourseFlag=2,利用DisposalCourseFlag列上的索引进...
分类:
数据库 时间:
2015-01-06 09:58:20
阅读次数:
160
字体类型以Windows为例,有4种字体技术:Raster:光栅型,就是用位图来绘制字形(glyph),每个字都以位图形式保存Vector:矢量型,就是用一系列直线的结束点来表示字形TrueType:使用一系列直线、曲线和一些提示(hint)命令来绘制字形Microsoft OpenType:与Tr...
分类:
其他好文 时间:
2014-12-31 22:48:37
阅读次数:
455
查询优化手段和gather_plan_statistics hint:
在10g以后我们可以通过利用gather_plan_statistics提示来了解更多的SQL执行统计信息,具体使用方法如下:
如果在statistics_level参数设置为ALL,或者执行的sql使用了gather_plan_statistics hint,则在sql执行后,会在v$sql_plan_statistic...
分类:
数据库 时间:
2014-12-31 13:10:45
阅读次数:
236