Part I:提问===========================1.如何删除一条记录?Part II:理论学习===========================1.Ajax技术
分类:
其他好文 时间:
2014-11-20 13:29:30
阅读次数:
155
Part I:提问===========================1.如何编辑更新一条记录?Part II:案例学习===========================MusicStore的开发故事(教程下载)第9集:注册和结账(视频下载:1 , 2)一、合并购物车二、创建结账Checkou...
分类:
其他好文 时间:
2014-11-20 11:50:15
阅读次数:
175
The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie...
分类:
其他好文 时间:
2014-11-19 23:43:08
阅读次数:
250
问题描述:
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array A = [1,1,1,2,2,3],
Your function should return length = 5, and A is now
[...
分类:
其他好文 时间:
2014-11-19 22:19:08
阅读次数:
138
题目描述:
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like ...
分类:
其他好文 时间:
2014-11-19 22:18:52
阅读次数:
225
1 content = [ii for ii in range(50)]This can generate a list content
分类:
编程语言 时间:
2014-11-19 20:11:41
阅读次数:
211
The set [1,2,3,…,n] contains a total of n! unique
permutations.
By listing and labeling all of the permutations in order,
We get the following sequence (ie, for n = 3):
"123""132""213""231""3...
分类:
其他好文 时间:
2014-11-19 18:43:16
阅读次数:
187
dbcn="mysql -h172.16.1.194 -uroot -p123456";
db=dsp_ad_center;
ii=0;
ct=`$dbcn -N -e " SELECT COUNT(1) FROM information_schema.TABLES AS t WHERE t.TABLE_SCHEMA = '$db' AND t.TABLE_TYPE = 'BASE TABLE'...
分类:
数据库 时间:
2014-11-19 18:36:33
阅读次数:
204
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1002解题思路:就是把大的数用数组存放起来,像小学的时候用竖式加法来算两个数相加那样算;反思:思路很简单,可是有很多细节考虑不好,有时候没有进位,有时候又没有输出正确的答案,然后有时候数组长度又开小了什么...
分类:
其他好文 时间:
2014-11-19 18:21:53
阅读次数:
222
UVA10940 - Throwing cards away II(找规律)
题目链接
题目大意:桌上有n张牌,按照1-n的顺序从上到下,每次进行将第一张牌丢掉,然后把第二张放到这叠牌的最后。反复进行这样的操作,知道只剩下一张牌。
解题思路:只能先暴力,将前面小点的n打印出来,看看有什么规律。
规律:f【2^k + mod] = 2*mod;(mod > 0); n = 1需要...