1.重写simpleAdapter 方法@Override public HashMap getItem(int position) { // TODO Auto-generated method stub return listItem.get(position); } public MyA...
分类:
移动开发 时间:
2015-06-09 16:26:05
阅读次数:
133
Array.prototype.S = String.fromCharCode(2);Array.prototype.in_array = function (e) { var r = new RegExp(this.S + e + this.S); return (r.test(this.S .....
分类:
Web程序 时间:
2015-06-09 16:20:00
阅读次数:
128
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:
其他好文 时间:
2015-06-09 15:42:42
阅读次数:
120
Given an index k, return the kth row of the Pascal’s triangle.For example, given k = 3,
Return [1,3,3,1].Note:
Could you optimize your algorithm to use only O(k) extra space?分析:通过递归设置vector的值,变量i表示当前...
分类:
其他好文 时间:
2015-06-09 13:51:09
阅读次数:
96
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Update (2015-02-12):For C prog...
分类:
其他好文 时间:
2015-06-09 13:43:35
阅读次数:
88
1,返回url参数 /* * 返回参数值 * @method getUrlPara * @papram {string},url中参数名 * @return {string},url中参数值 * */ function getUrlPara(par...
分类:
其他好文 时间:
2015-06-09 13:33:08
阅读次数:
93
No.56 Merge IntervalsGiven a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6],[8,10],[15,18],return[1,6],[8,10],[...
分类:
其他好文 时间:
2015-06-09 13:29:51
阅读次数:
116
<form?name="form1"?action="#"???onsubmit="return?check(this);">
??<table?class="con_list"?width="670"?border="0"?cellspacing="0"
???cellpadding="0">
???
??
???<tr>
????<...
分类:
Web程序 时间:
2015-06-09 12:03:55
阅读次数:
124
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn’t matter what you leave beyond the new length.思路:遍历数组,如果...
分类:
其他好文 时间:
2015-06-09 11:59:43
阅读次数:
115
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place with cons...
分类:
其他好文 时间:
2015-06-09 11:58:43
阅读次数:
86