Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representatio...
分类:
其他好文 时间:
2014-08-21 00:01:23
阅读次数:
293
6、实用函数 ● 修剪字符串$('#id').val($.trim($('#someid').val()))● 遍历集合可能这样写:var anArray = ['one','two'];for(var n = 0; n 3;})console.log(arr);//结果是:4 5 6如果把grep...
分类:
Web程序 时间:
2014-08-20 23:53:33
阅读次数:
356
Description
Given n, a positive integer, how many positive integers less than n are relatively prime to n? Two integers a and b are relatively prime if there are no integers x > 1, y > 0, z > 0 such ...
分类:
其他好文 时间:
2014-08-20 22:41:13
阅读次数:
264
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2014-08-20 22:28:12
阅读次数:
244
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:
其他好文 时间:
2014-08-20 22:21:12
阅读次数:
210
jQuery offers two powerful methods to execute code and attach event handlers: $(document).ready and $(window).load. Thedocument readyevent executes al...
A squarenumber is an integer number whose square root is also an integer. For example1, 4, 81 are some square numbers. Given two numbers a and b you will have tofind out how many square numbers are th...
分类:
其他好文 时间:
2014-08-20 16:28:22
阅读次数:
151
刚刚做了两道LCIS,碰到这道线段树,脑抽了似的写 线段树+dp(LCIS),贡献一发TLE。
才想到要区间合并,query函数写了好久。下面有详细注释,参见代码吧~~欢迎点赞,欢迎卖萌~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
题目链接:http://acm.hdu.e...
分类:
其他好文 时间:
2014-08-20 16:27:52
阅读次数:
207
讲解anroid.view.animation。
android.view.animation
Provides classes that handle tweened animations.
Android provides two mechanisms that you can use to create simple animations: tweened ...
分类:
移动开发 时间:
2014-08-20 16:24:52
阅读次数:
230
We will construct an infinitely long string from two short strings: A = "^__^" (four characters), and B = "T.T" (three characters). Repeat the followi...
分类:
其他好文 时间:
2014-08-20 15:43:02
阅读次数:
178