LeetCode: Max Points on a LineGiven n points on a 2D plane, find the maximum number of points that lie on the same straight line.地址:https://oj.leetcod...
分类:
其他好文 时间:
2014-07-27 23:22:59
阅读次数:
289
题目来源:http://acm.hdu.edu.cn/showproblem.php?pid=1711 改进的模式匹配算法--KMP算法,时间复杂度有O(n*m)降到O(n+m),求解next数组之后与常规的模式匹配算法相同。 1 #include 2 const int maxn=100...
分类:
其他好文 时间:
2014-07-27 23:11:29
阅读次数:
221
文章转自:http://m.bianceng.cn/database/Oracle/201407/42884.htm测试环境:版本11gR2SQL> select * from v$version where rownum=1;BANNER------------------------------...
分类:
其他好文 时间:
2014-07-27 23:09:59
阅读次数:
374
题目:找出数组中出现次数超过一半的元素解法:每次删除数组中两个不同的元素,删除后,要查找的那个元素的个数仍然超过删除后的元素总数的一半#include int half_number(int a[], int n){ if( a == NULL || n void find(int a[], ...
分类:
其他好文 时间:
2014-07-27 23:09:29
阅读次数:
169
http://www.richweb.com/cpu_infoA hyperthreaded processor has the same number of function units as an older, non-hyperthreaded processor. It just has t...
分类:
系统相关 时间:
2014-07-27 22:56:19
阅读次数:
518
Restoring IPv6DescriptionAn IPv6-address is a 128-bit number. For convenience, this number is recorded in blocks of 16 bits in hexadecimal record, the...
分类:
其他好文 时间:
2014-07-27 22:53:39
阅读次数:
301
DescriptionYou've decided to carry out a survey in the theory of prime numbers. Let us remind you that a prime number is a positive integer that has e...
分类:
其他好文 时间:
2014-07-27 22:51:29
阅读次数:
288
DescriptionYou've decided to carry out a survey in the theory of prime numbers. Let us remind you that a prime number is a positive integer that has e...
分类:
其他好文 时间:
2014-07-27 22:31:39
阅读次数:
809
//============================================================================// Name : B.cpp// Author : L_Ecry// Version :// Copyrigh...
分类:
其他好文 时间:
2014-07-27 22:20:39
阅读次数:
167
Welcome to Git (version 1.9.4-preview20140611)Run 'git help git' to display the help index.Run 'git help ' to display help for specific commands.Tingk...
分类:
其他好文 时间:
2014-07-27 22:19:09
阅读次数:
189