Description
Given a string of 0's and
1's up to
1000000 characters long and indices
i and
j, you are to answer a question whether all characters between position
min(i,j) and position
max(i,j...
分类:
其他好文 时间:
2014-08-10 18:47:30
阅读次数:
277
如果想要disable掉GridView中的item,需要做如下两件事情: 1. override Adapter 的 areAllItemsEnabled 2. override Adapter 的 isEnabled(int position) 3. 另外如果想在disable的时候,置灰对应的item,那么只...
分类:
其他好文 时间:
2014-08-10 15:55:30
阅读次数:
217
第一部分 normalize.css 167至171行 fieldset?{
??padding:?.35em?.625em?.75em;
??margin:?0?2px;
??border:?1px?solid?#c0c0c0;
}
legend?{
??padding:?0;
??border:?0;
} 表单分组标题的...
分类:
其他好文 时间:
2014-08-10 13:11:30
阅读次数:
282
Search for a RangeGiven a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity ...
分类:
其他好文 时间:
2014-08-09 18:18:28
阅读次数:
214
//BFS#include #include using namespace std;bool used[8][8];int move[8][2]={1,2, -1,2, -2,1, -2,-1, -1,-2, 1,-2, 2,-1, 2,1};struct position{ int i,j...
分类:
其他好文 时间:
2014-08-09 11:21:17
阅读次数:
245
如果是嵌套的div布局,外面的div比如是<divclass="container"></div>这时候设置的是一个大的外框架,居中显示。我们要在里面嵌套div来显示内容,这时候就通过<divstyle="display:block;position:relative"></div>来使得div标签的位置是相对于外面最靠..
分类:
其他好文 时间:
2014-08-09 02:47:57
阅读次数:
378
1$.extend($.fn.panel.methods,{2showMask:function(jq,msg){3returnjq.each(function(){4varpal=$(this).panel('panel');5if(pal.css('position').toLowerCase(...
分类:
其他好文 时间:
2014-08-08 23:46:16
阅读次数:
429
1.int android.widget.AbsListView.pointToPosition(int x, int y):将坐标映射成list位置序号!! 2014.08.08Maps a point to a position in the list.Parameters:x X in loc...