这一节的主要内容:1、创建一个radio input(这是HTML的内容,但是之前掌握的不熟练);2、把它加入到原来的值的体系当中,即:判断有没有选择gender,如果没有选择就设定:$_POST['gender'] = '';这个时候mail_process.php中的以下代码将中把'gender...
分类:
其他好文 时间:
2014-11-04 15:00:05
阅读次数:
152
Note:
Here’s how the above method works.
arc4random() gives you a randominteger between 0 and
ARC4RANDOM_MAX. If you divide that number byARC4RANDOM_MAX,
you get a float between 0 and 1.
If you...
分类:
移动开发 时间:
2014-11-03 21:00:43
阅读次数:
255
1.Sequential statement groups the begin-end keywords: .group several statements togethor .cause the statements to be evaluated sequentially(one at a t...
分类:
其他好文 时间:
2014-11-03 20:52:59
阅读次数:
185
php artisan migrate:make create_users_table create_forum_groups_table create_forum_categories_table create_forum_threads_table create_forum_comme...
分类:
数据库 时间:
2014-11-02 22:21:35
阅读次数:
158
AnagramsGiven an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.思路:建Hashtable,用排序过的string作为ke...
分类:
其他好文 时间:
2014-11-01 19:00:04
阅读次数:
230
归并(Merge)排序是将两个(或两个以上)有序表合并成一个新的有序表,
即把待排序序列分为若干个有序的子序列,再把有序的子序列合并为整体有序序列。
归并排序是建立在归并操作上的一种有效的排序算法。
该算法是采用分治法(Divide and Conquer)的一个非常典型的应用。...
分类:
编程语言 时间:
2014-11-01 17:53:27
阅读次数:
243
DescriptionVasya has been playing Plane of Tanks with his friends the whole year. Now it is time to divide the participants into several categories de...
分类:
其他好文 时间:
2014-11-01 13:09:05
阅读次数:
258
分治(Divide and Conquer)算法:问题可以分解为子问题,每个问题是可以独立的解决的,从子问题的解可以构建原问题。
Divide:中间分、随机分、奇偶分等,将问题分解成独立的子问题
Conquer:子问题的解可以单独解决,从子问题的解构建原问题最终的解
Combine:每一步将子问题产生的解进行合并得到最终的解,合并的复杂度影响最终的算法时间复杂度
Karatsuba算法是在...
分类:
编程语言 时间:
2014-11-01 01:03:41
阅读次数:
339
二分查找(Binary Search)算法使用了分治法(Divide and Conquer)来不断缩小查找范围,并充分利用已知的信息将查找时间复杂度降低到 O(logn)。
分类:
其他好文 时间:
2014-11-01 00:49:49
阅读次数:
394
Anagrams
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
public class Solution {
public List anagrams(Str...
分类:
其他好文 时间:
2014-10-31 19:07:14
阅读次数:
147