码迷,mamicode.com
首页 > 2015年04月12日 > 全部分享
leetcode-18 4Sum
?? 问题描述:Givenan array S of n integers, are there elements a, b, c,and d in S such that a + b + c + d =target? Find all unique quadruplets in the array which gives the sum of target. Note: ...
分类:其他好文   时间:2015-04-12 17:52:44    阅读次数:125
G.711编码原理及代码
G711音频编码原理及代码。...
分类:其他好文   时间:2015-04-12 17:51:26    阅读次数:177
poj1088 滑雪 记忆化搜索
我是渣渣 我是渣渣 。。。。记忆化搜索 看了学长的代码 和算法竞赛入门经典这本书才勉勉强强看懂点。。。 #include #include int dir[4][2]={1,0,-1,0,0,1,0,-1};//方向 int dp[101][101],map[101][101]; int m,n; int max(int x,int y) { return x>y?x:y; } bo...
分类:其他好文   时间:2015-04-12 17:51:39    阅读次数:127
我的第一个编译器之符号表
符号表 符号表是一种供编译器用于保存有关源程序构造的各种信息的数据结构,这些信息在编译器的分析阶段被逐步收集并放入符号表。 如我们输入 {int x;char y;{bool y; x; y; }x; y;} 期望生成: {{x:int; y:bool;} x:int; y:char;} 内层块的x来源于外部。 为每个作用域设置一个符号表 package com.bigb...
分类:其他好文   时间:2015-04-12 17:50:22    阅读次数:132
windows网络编程入门
windows Sockets 的版本: 头文件:WINSOCK.h 库文件:wsock32.lib 动态困:WINSOCK.DLL 头文件:WINSOCK2.h 库文件:WS2_32.lib 动态困:WS2_32.DLL 服务端: WSADATA wsd; //WSADATA变量 SOCKET sServer; //服务器套接字 SOCKET...
分类:Windows程序   时间:2015-04-12 17:51:11    阅读次数:215
[LeetCode] Intersection of Two Linked Lists
Intersection of Two Linked Lists   Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: A: a1...
分类:其他好文   时间:2015-04-12 17:51:57    阅读次数:146
初识NuGet
因为想查一查opencvsharp的东西,然后发觉这个包可以再NuGet上面可以直接下载。我也经常在很多地方都可以看到NuGet,所以我想写下来,记录下来。 NuGet是一个免费的并且开源的包管理器在微软的开发平台上。NuGet发布在Visual Studio的拓展插件上。 NuGet现在已经移植到代码管理平台github了,链接地址为https://github.com/nuget/home。...
分类:其他好文   时间:2015-04-12 17:50:51    阅读次数:117
Sort Colors -- leetcode
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers ...
分类:其他好文   时间:2015-04-12 17:48:54    阅读次数:131
xcode archive意外退出
昨天把xcode 6.1.1升级到了6.3,archive时xcode意外退出,尝试了各种方法,甚至都把证书重新生成一遍还是没法解决。最后都做好回退xcode的准备。用了百度,国内还没相关的信息,试着去stackoverflow.com查找最后还真解决了。 这可能是xcode的问题,已经有国外网友反馈到苹果论坛了,苹果也接受了这个问题。 解决方法就是:source contro...
分类:其他好文   时间:2015-04-12 17:49:29    阅读次数:147
canvas绘制动画效果
绘制一个笑脸,实现笑脸的左右匀速运动 html代码:js代码: function $(id) { return document.getElementById(id); }...
分类:其他好文   时间:2015-04-12 17:48:29    阅读次数:83
游戏引擎/GUI的设计与实现-序
几年前写《嵌入式GUI FTK设计与实现》,没写几篇就停止更新了。当时自己研究过MicroWindows, X Window, DirectFB, GTK+和Android的GUI,又写过嵌入式GUI FTK,以为自己对GUI还算熟悉,但是真正写起来还是有些力不从心。另外硬件的飞速发展,我感觉FTK的实用价值不大了,自己的精力转向了CANTK的开发,所以没有再写下去。...
分类:其他好文   时间:2015-04-12 17:48:46    阅读次数:137
Apache启动不了httpd: apr_sockaddr_info_get() failed xgp
httpd: apr_sockaddr_info_get() failed for hoteel httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 我在service httpd restart的时候提示上述信息的。虽然启动成功...
分类:Web程序   时间:2015-04-12 17:49:47    阅读次数:161
flex匹配json number, string
根据官网给出的number格式定义很容易匹配:DIGIT [0-9] DIGITS {DIGIT}+ INT "-"?([0-9]|[1-9][0-9]*) FRAC "."{DIGITS} E [eE][-+]? EXP {E}{DIGITS} NUMBER {INT}({FRAC}|{EXP}|{FRAC}{EXP})?string的匹配就复杂点, 开始...
分类:Web程序   时间:2015-04-12 17:50:33    阅读次数:118
ACM刷题需要注意关于输入输出的问题
下面总结一下刷题需要注意的问题: 1. scanf函数返回值就是读出的变量个数,没有读到数据返回-1,EOF是一个预定义的常量,为-1; 2. scanf函数读入数据,不能规定精度。如:scanf("%7.2f", &n);是不合法的; 3. C语言不支持在for语句里定义变量。如:for(int i=0; i 三种输入: 1. 数据量不定的情况:用while(scanf("%d...
分类:其他好文   时间:2015-04-12 17:50:14    阅读次数:115
寻找发帖水王(找出数组出现超过一半的数字)
#include using namespace std; void find(int A[],int length) { int times=0; int i=0; int temp; for(;i { if(times==0) { temp=A[i]; times=1; } else { if(A[i]==temp) times++; else times...
分类:编程语言   时间:2015-04-12 17:48:53    阅读次数:125
Linkedlist与ArrayList的各种操作性能对比-单线程对比
Linkedlist与ArrayList的各种操作性能对比-单线程对比...
分类:编程语言   时间:2015-04-12 17:49:43    阅读次数:146
[LeetCode] Find Peak Element
Find Peak Element A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its index. The array may co...
分类:其他好文   时间:2015-04-12 17:49:04    阅读次数:139
1651条   上一页 1 ... 34 35 36 37 38 39 40 ... 98 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!