码迷,mamicode.com
首页 > 其他好文
Longest Substring Without Repeating Characters -- leetcode
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:其他好文   时间:2014-12-12 11:49:07    阅读次数:132
链表(5)----查找链表倒数第K个节点
1、链表定义 typedef struct ListElement_t_ { void *data; struct ListElement_t_ *next; } ListElement_t; typedef struct List_t_{ int size; int capacity; ListElement_t *head; List...
分类:其他好文   时间:2014-12-12 11:48:13    阅读次数:143
TortoiseGit创建本地库并提交到远程服务器
前半部分参考网上的例子:http://www.showerlee.com/archives/1300,但会出现“git did not exit cleanly (exit code 128)”错误 1.在D盘新建一个目录,例如"D:\Git",并进入目录右键目录空白处选择"Git Create repository here...",弹出对话框点确认,这样即建立了一个本地Git...
分类:其他好文   时间:2014-12-12 11:46:56    阅读次数:288
UVa 10141 - Request for Proposal
题目:政府要做n个项目,对p个公司招标,政府想知道哪家公司能做的项目最多并且花费更少。 分析:简单题。因为每个厂家提供的方案都在招标的列表中,直接计数比较即可。 说明:注意数据格式,有几天没刷题了,要赶快不少( ⊙ o ⊙ )啊!。 #include #include #include #include #include #include #include using nam...
分类:其他好文   时间:2014-12-12 11:48:41    阅读次数:101
链表(6)----查找链表中间节点
1、链表定义 typedef struct ListElement_t_ { void *data; struct ListElement_t_ *next; } ListElement_t; typedef struct List_t_{ int size; int capacity; ListElement_t *head; ListElem...
分类:其他好文   时间:2014-12-12 11:46:41    阅读次数:142
Duanxx的微积分学习:极限
关于极限 2 关于夹逼定理 2 limx→0sinxx=1的证明 3...
分类:其他好文   时间:2014-12-12 11:45:52    阅读次数:116
一个关于cocoapods的问题
一个关于cocoapods的问题...
分类:其他好文   时间:2014-12-12 11:45:35    阅读次数:134
假如有一个固定高度的div,如何让里面的一个图片垂直居中?
假如有一个固定高度的div,如何让里面的一个图片垂直居中? 使用display:table-cell属性就行,直接上代码 html: css: div.warp { display: table-cell; vertical-align: middle; height: 148px; background-color:gray; } 显示效果: http://jsfiddle.net...
分类:其他好文   时间:2014-12-12 11:44:59    阅读次数:137
【LeetCode】Partition List 解题报告
【题目】 Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the original relative order of the nodes ...
分类:其他好文   时间:2014-12-12 11:44:41    阅读次数:125
Cloudera Hadoop 5.2 安装
环境准备 1)JDK 2)本地cdh yum源  省..... 3)本地hosts 10.20.120.11 sp-kvm01.hz.idc.com 10.20.120.12 sp-kvm02.hz.idc.com 10.20.120.13 sp-kvm03.hz.idc.com 10.20.120.14 sp-kvm04.hz.idc.com...
分类:其他好文   时间:2014-12-12 11:44:59    阅读次数:306
CentOS 7 网络配置
今天在一台PC上安装了CentOS 7,当时选择了最小安装模式,安装完成后马上用ifconfig查看本机的ip地址(局域网已经有DHCP),发现报错,提示ifconfig命令没找到。 [root@centos1 ~]# ifconfig -bash: ifconfig: command not found 首先,习惯性的输入echo $PATH(查看当前PATH环境变量,跟DOS...
分类:其他好文   时间:2014-12-12 11:42:09    阅读次数:279
RedHat5.4系统下载及中文设置
(注:这个方法也可以解决你程序中使用自定义字体导致web程序部署到linux中web容器下后的乱码问题,只需要找到你程序中使用的字体,按照下面的步骤执行命令,将自定义字体安装到系统,在web程序启动后,就不会看到乱码或小方块了。)   RedHat5.4系统在工作中比较常用,先提供个32位版本(rhel-server-5.4-i386-dvd.iso)的下载:点我下载   系统装好后,设置...
分类:其他好文   时间:2014-12-12 11:43:02    阅读次数:245
9.4.1 函数式和命令式类
9.4.1 函数式和命令式类    在类或者类的构造函数的参数值中的 let 绑定,就像我们在其他 F# 代码中看到的 let 绑定一样,也是不可变值;此外,使用 member 关键字声明的属性,创建的是只读属性(只有 getter)。因此,如果类只引用其他不可变类型的值,那么,类也不可变。 比方说,在前面的例子中,我们要允许改变客户的收入,可以有两种方式: ■以纯函数式风格,对象将返回一...
分类:其他好文   时间:2014-12-12 11:42:13    阅读次数:146
【VC】warning C4996: 'XXXX': This function or variable may be unsafe.
关于VS系列使用 Unicode 格式产生以上警告: warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help ...
分类:其他好文   时间:2014-12-12 11:41:51    阅读次数:892
careercup-中等难度 17.6
17.6 给定一个整数数组,编写一个函数,找出索引m和n,只要将m和n之间的元素排好序,整个数组就是有序的。注意:n越小越好,也就是说,找出符合条件的最短序列。解法:开始解题之前,让我们先确认一下答案会是什么样的。如果要找的是两个索引,这表明数组中间有一段有待排序,其中数组开头和末尾部分是排好序的。...
分类:其他好文   时间:2014-12-12 11:38:15    阅读次数:128
dom4j怎么获得指定名称的节点信息
oracle.jdbc.driver.OracleDriver dbc:oracle:thin:@172.16.1.101:1521:orcl zdyn zdyn String xml ="...
分类:其他好文   时间:2014-12-12 11:39:47    阅读次数:212
视听说加速器--AHK辅助工具
视听说辅助工具功能简介及使用方法说明: ● F1 查看使用说明 ● F4 提交答案,通过4次点击提交答案并进入下一题 ● Ctrl+F4 设置提交答案要点击的速度和位置,详见操作提示 ● F5 视听说口语第1部分辅助点击,按Esc可退出功能 ● F6 视听说口语第2部分辅助点击,按...
分类:其他好文   时间:2014-12-12 11:38:08    阅读次数:450
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!