1 @interface ViewController () 2 - (IBAction)customBtnClick; 3 4 @end 5 6 @implementation ViewController 7 8 - (void)viewDidLoad { 9 [super vi...
分类:
其他好文 时间:
2015-07-15 06:33:39
阅读次数:
111
翻转节点
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain ...
分类:
其他好文 时间:
2015-07-14 22:40:56
阅读次数:
165
代码: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 struct Interval { 8 int start; 9 int end;10 Interval() : start(0), end...
分类:
其他好文 时间:
2015-07-14 22:36:08
阅读次数:
243
将大数转化为小数,例如:
a:12351235 2151321 51514563 5132316
b: 3 1 4 2
type
node=record
id,c:longint;
end;
v...
分类:
其他好文 时间:
2015-07-14 18:01:31
阅读次数:
143
题目链接:https://leetcode.com/problems/remove-nth-node-from-end-of-list/
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: ...
分类:
其他好文 时间:
2015-07-14 15:50:20
阅读次数:
122
自己写的代码,记录一下public class MergeSort {// recursive public static void mergeSort(int[] nums, int start, int end) { if(start >= end) { ...
分类:
编程语言 时间:
2015-07-14 15:25:15
阅读次数:
148
自己写的代码,记录一下。分别记录了两种partition的方法。public class QuickSort { public static void quickSort(int[] nums, int start, int end) { if(start >= end) { ...
分类:
编程语言 时间:
2015-07-14 15:23:46
阅读次数:
111
solution:Rational Performance Tester(RPTv8.6) 在launch Schedule 时一直卡在 29%
打开Task Manager(Windows server 2012 R2即win8内核的,右键左下角大概在中间部分即可看到),将所有和rpt有关的进行或者线程都end task掉,记住,是所有,包括Apps中的和Background ...
分类:
其他好文 时间:
2015-07-14 13:34:21
阅读次数:
86
一、语法简介
1.类
在Java中,我们用1个.java文件就可以描述清楚一个类;在OC中,一般用2个文件来描述一个类:
1> .h:类的声明文件,用于声明成员变量、方法。类的声明使用关键字@interface和@end。
注意:.h中的方法只是做一个声明,并不对方法进行实现。也就是说,只是说明一下方法名、方法的返回值类型、方法接收的参数类型而已,并不会编写方法内部的代码。...
分类:
其他好文 时间:
2015-07-14 11:48:47
阅读次数:
133
直接上代码://
// AppDelegate.m
//
//#import "AppDelegate.h"
#import "Person.h"
@interface AppDelegate ()@end@implementation AppDelegate- (void)dealloc {
[_window release];
[super dealloc];
}- (BOOL...
分类:
其他好文 时间:
2015-07-14 11:44:28
阅读次数:
119