码迷,mamicode.com
首页 > 其他好文
LeetCode OJ:Word Pattern(单词模式)
Given apatternand a stringstr, find ifstrfollows the same pattern.Herefollowmeans a full match, such that there is a bijection between a letter inpatt...
分类:其他好文   时间:2016-01-03 22:29:01    阅读次数:243
KVC和KVO
KVC:KVO:
分类:其他好文   时间:2016-01-03 22:26:32    阅读次数:247
第十九周 1.3-1.9
1.3补个BC。HDU 5608function题解这么说。复杂度不会。 1 #include 2 #include 3 #include 4 using namespace std; 5 typedef long long LL; 6 const LL mod = 1e9 + 7; 7 co...
分类:其他好文   时间:2016-01-03 22:27:18    阅读次数:229
日本恐怖片《二重身》核心内容赏析
日本略微恐怖片《二重身》赏析 ,播放地址 http://www.iqiyi.com/v_19rrhnuyz8.html?pltfm=11&pos=ctnvw&flashvars=videoIsFromQidan%3Ditemviewclk_a#vfrm=5-6-0-1电影采用倒叙播放,基本上看完才能...
分类:其他好文   时间:2016-01-03 22:26:57    阅读次数:345
Min Stack leetcode
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:其他好文   时间:2016-01-03 22:25:25    阅读次数:248
Objective-C 字符串与可变字符串
知识点 1.NSString 类的使用 2.NSMutableString 类的使用==========================================NSString 1.NSString对象和C类型字符串做对比 // OC字符串是对象 c字符串只是单个字母拼接 // o...
分类:其他好文   时间:2016-01-03 22:25:29    阅读次数:270
Container With Most Water
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:其他好文   时间:2016-01-03 22:22:25    阅读次数:205
Django如何搭建服务器
建立django站点:新建Django项目,我这里是使用命令创建项目的。django-admin startproject HelloDjango 创建HelloDjango项目然后进入到HelloDjango项目根目录下,运行命令创建hello模块python manage.py startapp...
分类:其他好文   时间:2016-01-03 22:23:32    阅读次数:208
建造者模式
建造者模式是将一个复杂对象的构建与它的表示分离,使得同样的构建过程可以创建出不同的表示。它的关键特性是它将一个建造过程分解成若干步骤,即每个产品的建造都会遵循同样的步骤,但每个步骤内的具体实现都不尽相同。 建造者模式的类图: 建造者模式的实际用法 很多类库都有使用建造者模式,比如Jav...
分类:其他好文   时间:2016-01-03 22:23:11    阅读次数:245
Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.Subscribeto see which companies asked this question比较每个字符串的每个字符,...
分类:其他好文   时间:2016-01-03 22:23:07    阅读次数:216
RedHat6.4系统下LAMP环境的搭建---(yum搭建)
一:配置本地yum源:1 创建一个文件夹用于存放挂载光盘的文件mkdir /mnt/cdrom 2 将光驱挂载在创建的文件夹中mount /dev/cdrom /mnt/cdrom 3 当然我们也可以设置为开机自动挂载光驱:用vi编辑/etc/rc.local文件,因为在系统启动过程中,完成初始化....
分类:其他好文   时间:2016-01-03 22:20:59    阅读次数:341
Roman to Integer
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Subscribeto see which companies asked this q...
分类:其他好文   时间:2016-01-03 22:22:00    阅读次数:227
解决克隆虚拟主机网络开启失败
开启失败的原因是克隆的虚拟主机,所有的东西都是一样的,包括唯一的UUID,UUID重复会导致虚拟主机无法链接网络。必须修改UUID。修改UUID的方法是:打开网卡eth0配置文件vim /etc/sysconfig/network-scripts/ifcfg-eth0删除配置文件里面的mac地址删除...
分类:其他好文   时间:2016-01-03 22:19:38    阅读次数:216
POJ2677 Tour(DP+双调欧几里得旅行商问题)
TourTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 3929Accepted: 1761DescriptionJohn Doe, a skilled pilot, enjoys traveling. While on vacati...
分类:其他好文   时间:2016-01-03 22:20:24    阅读次数:210
2-5
北京某高校可用的电话号码有以下几类:校内电话号码由4位数字,第1位数字不是0;校外电话又分为本市电话和外地电话两类,拔校外电话需先拔0,若是本市电话则再接着拔8位数字(第一位不是0),若是外地电话则拔3位区码再拔8位电话号码(第一位不是0)。 用2.5.2小节讲述的定义数据的方法,定义上述的电...
分类:其他好文   时间:2016-01-03 22:19:31    阅读次数:180
ZOJ2770 Burn the Linked Camp(差分约束系统)
区间和一定要联系到前缀和。这题,把前缀和看作点,从s0到sn;对于每一个营地i的容量capi,有这么个关系si-si-1=k,即si-1-sj 2 #include 3 #include 4 #include 5 using namespace std; 6 #define INF (1 que;2...
分类:其他好文   时间:2016-01-03 22:20:59    阅读次数:197
2016-1-3点菜系统demo的实现,pickerView的学习
//// ViewController.m// pickView//// Created by Mac on 16/1/3.// Copyright © 2016年 Mac. All rights reserved.//#import "ViewController.h"@interface...
分类:其他好文   时间:2016-01-03 22:17:52    阅读次数:200
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!