摘要:
向php脚本中传参数可以用http GET 方法,比如要向file.php传两个参数v1和v2.则可以这么做file.php?v1=1&v2=2(一个链接而已,直接编辑URL即可传参数了)这样在file.php中要获得v1和v2的值,可以这么做:$v1= $_GET['v1'];$v2= $_GET... 阅读全文
摘要:
http://www.simplehitcounter.com/ 阅读全文
摘要:
use the existing service:http://www.foxyform.com/ 阅读全文
摘要:
http://howtodoinjava.com/2012/10/09/working-with-hashcode-and-equals-methods-in-java/ 阅读全文
摘要:
problem: given an array of integers including positive and negative, a target value. find 2 numbers in the array such that the sum of the 2 numbers is... 阅读全文
摘要:
Dynamic programming, or the "put shit in a table" technique, is an optimization for certain types of recurrence problems (specifically, those with ove... 阅读全文
摘要:
the algorithm is like this: it evenly spreads an integer N over K cells.for i = 0 to K array[i] = N / K # integer division# divide up the remain... 阅读全文
摘要:
http://hi.baidu.com/eehuang/item/22283e220437a80d76272cb7 阅读全文
摘要:
\d represent any number\D represents everything but a number\s represents any space\S Anything but a space\w Any character\W Anything but a character.... 阅读全文
摘要:
Selection:selection is a trivial problem if the input numbers are sorted. If we use a sorting algorithm having O(nlgn) worst case running time, then t... 阅读全文