码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
LeetCode:Remove Nth Node From End of List
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:其他好文   时间:2014-09-16 14:13:50    阅读次数:133
Remove Nth Node From End of List
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:其他好文   时间:2014-09-16 10:24:40    阅读次数:158
数据持久化,简单对象写入本地,复杂对象写入本地
#import"MainViewController.h" #import"Student.h" @interfaceMainViewController() @end @implementationMainViewController -(id)initWithNibName:(NSString*)nibNameOrNilbundle:(NSBundle*)nibBundleOrNil { self=[superinitWithNibName:nibNameOrNilbundle:nibBundleOrN..
分类:其他好文   时间:2014-09-16 02:50:00    阅读次数:181
nodejs后台启动
bat脚本@echo off if "%1" == "h" goto begin mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit :begin node myserver.js:end...
分类:Web程序   时间:2014-09-16 00:13:59    阅读次数:217
POJ 3691 DNA repair AC自动机 + DP
题意:给你只包含‘A’,‘G’,‘T’,‘C’四个字母的n个模板串和1个文本串,问你文本串改变多少个字符就可以使得文本串中没有一个模板串解题思路:我们可以知道 dp[i][j] 为文本串到 第i 个字符 AC自动机状态为j的最少的变换次数(这里为什么要用AC自动机,因为end数组可以记录哪一个状态是...
分类:其他好文   时间:2014-09-15 22:44:49    阅读次数:427
TCP/IP协议头部结构体
http://blog.csdn.net/ithomer/article/details/5662383IP和TCP都20字节,IP存放地址,TCP存放端口。TCP还存放一些用于TCP特定协议的内容,序列号、确认号// i386 is little_endian.#ifndef LITTLE_END...
分类:其他好文   时间:2014-09-15 21:08:49    阅读次数:250
tableView 重载数据/ 刷新cell (代码)
#import"NewTitleTableViewController.h"@interfaceNewTitleTableViewController()<NSURLConnectionDataDelegate>@property(nonatomic,retain)NSArray*arr;@property(nonatomic,retain)NSMutableData*data;@end@implementationNewTitleTableViewController-(void)dealloc..
分类:其他好文   时间:2014-09-15 19:56:19    阅读次数:185
IOS开发之copy与MutableCopy
在开发工程中,很多时候我们要创建对象的副本,要创建副本,对象所在的类必须遵守 NSCopying 和 NSMutableCopying 的协议:@protocol NSCopying- (id)copyWithZone:(NSZone *)zone;@end@protocol NSMutableCo...
分类:移动开发   时间:2014-09-15 17:34:09    阅读次数:163
LeetCode——Binary Tree Maximum Path Sum
Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary tree, 1 / 2 3 Return 6....
分类:其他好文   时间:2014-09-15 12:58:38    阅读次数:168
iOS 单例传值
写一个类  起作用是 传值 #import @interface singleton : NSObject +(singleton *)shareData;                      @property (strong, nonatomic) NSString *value; @end #import "singleton.h"...
分类:移动开发   时间:2014-09-15 11:21:28    阅读次数:164
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!