题目:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in place w...
分类:
其他好文 时间:
2015-04-03 15:18:13
阅读次数:
98
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?在计算机图像处理里,旋转图片是很常见的...
分类:
其他好文 时间:
2015-04-03 13:00:14
阅读次数:
132
1 // Playground - noun: a place where people can play 2 3 import Cocoa 4 5 //控制流 6 7 //Swift的条件语句包括if和switch,循环语句包含for-in、for、while和do-while,循环/判断...
分类:
编程语言 时间:
2015-04-02 10:19:44
阅读次数:
295
1 // Playground - noun: a place where people can play 2 3 import Cocoa 4 //函数和闭包 5 6 //函数,使用func关键字声明函数: 7 func greet(name:String, day:String) -> S...
分类:
编程语言 时间:
2015-04-02 10:19:36
阅读次数:
207
In computer software, a user exit is a place in a software program where a customer can arrange for their own tailor-made program to be called. In the...
分类:
其他好文 时间:
2015-03-31 19:53:54
阅读次数:
165
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他好文 时间:
2015-03-31 17:40:27
阅读次数:
114
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他好文 时间:
2015-03-31 17:29:00
阅读次数:
100
题目:
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in p...
分类:
其他好文 时间:
2015-03-31 10:54:28
阅读次数:
130
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路:我的思路,先沿对角线对称,再左右...
分类:
其他好文 时间:
2015-03-31 00:40:44
阅读次数:
185
// Playground - noun: a place where people can playimport Cocoavar str = "Hello, playground"var dic:Dictionary=[1:"Name",2:"Age"]for (id,name) in dic{...
分类:
编程语言 时间:
2015-03-30 22:32:13
阅读次数:
172