码迷,mamicode.com
首页 >  
搜索关键字:compress advanced low    ( 4944个结果
Sqrt(x) --LeetCode
题目: 实现sqrt(x) 思路:一般都是使用二分法,但是也可以使用牛顿法来实现更高的速度 #include #include #include using namespace std; int Sqrt(int num) { if(num == 1 && num == 0) return num; int low =1,high = num/2+1; int mid; ...
分类:其他好文   时间:2015-04-08 10:57:54    阅读次数:131
AES加密CBC模式兼容互通四种编程语言平台【PHP、Javascript、Java、C#】
先简单从百度找来介绍:?123456密码学中的高级加密标准(Advanced Encryption Standard,AES),又称高级加密标准Rijndael加密法,是美国联邦政府采用的一种区块加密标准。这个标准用来替代原先的DES,已经被多方分析且广为全世界所使用。经过五年的甄选流程,高级加密标...
分类:编程语言   时间:2015-04-08 10:29:56    阅读次数:260
【算法】求二叉树各路径结点之和并找出最大值的路径
说在前面的话 最近没事将大学里的《数据结构》(严蔚敏,吴伟民著)一书重拾温习,受益颇多,才发现工作之中诸多经验问题都找到了理论支撑。 当时觉得没用的书,现在只能嘲笑当时得多low... 现在依然很low... --!事件背景 因实际工作中,遇到一个关于权重的问题,需要将数据关系中最大权重的路径...
分类:编程语言   时间:2015-04-08 01:03:32    阅读次数:155
二分查找
1 int binary_search(int* a, int len, int goal) 2 { 3 int low = 0; 4 int high = len - 1; 5 while(low goal)12 high = middle - ...
分类:其他好文   时间:2015-04-07 23:11:31    阅读次数:134
Advanced C# language features
The content and code of this article is referenced from book Pro C#5.0 and the .NET 4.5 Framework by Apress. The intention of the writing is to review...
分类:Windows程序   时间:2015-04-07 21:22:24    阅读次数:306
选择排序法
我要用这个博客记录我的菜鸟成长之路!!以前只会一种快速排序的排序算法,觉得自己好low,今天学习了一种插入排序,嗯,只要认真看几分钟,排序还是不难的!小二,上代码voidInsertSort(inta[],intn) { inti,j,tmp; for(i=1;i<n;i++) { tmp=a[i];//将a[i]存在变量tmp..
分类:编程语言   时间:2015-04-07 20:15:21    阅读次数:151
Finding Comments in Source Code Using Regular Expressions
Many text editors have advanced find (and replace) features. When I’m programming, I like to use an editor with regular expression search and replace....
分类:其他好文   时间:2015-04-07 15:05:19    阅读次数:157
二分查找
1 #include 2 #include 3 4 5 int main() 6 { 7 int a[10000],n,m,i,j,k,low,high,mid,flag; 8 scanf("%d",&n); 9 for(i=0; ia[mid])46 ...
分类:其他好文   时间:2015-04-06 17:10:14    阅读次数:90
Lintcode: Sort Letters by Case
Given a string which contains only letters. Sort it by lower case first and upper case second.NoteIt's not necessary to keep the original order of low...
分类:其他好文   时间:2015-04-06 10:04:22    阅读次数:225
快速排序
void temp(int *l,int i,int j){ int t=l[i]; l[i]=l[j]; l[j]=t; }int partition(int *l,int low,int high){ int privotkey=l[low]; whi...
分类:编程语言   时间:2015-04-05 23:17:59    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!