题目
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
方法
矩阵坐标的转换,循环替换。
public voi...
分类:
其他好文 时间:
2014-06-16 11:28:03
阅读次数:
199
在Build Settings/Swift Complier-Code Generation/Objective-C Bridging Header找到对应的文件路径,删除一般就ok了第二种办法,就新建一个这样命名的.h文件(不推荐使用)
分类:
其他好文 时间:
2014-06-15 22:03:01
阅读次数:
202
php基本的语法网上看一些别人写的网站就会了)
php下的执行sql语句:
1.建立数据库连接:
$conn = mysql_connect("localhost", "root", "admin") or die("Could not connect " );
Localhost:本地主机名,root:mysql数据库账号 admin:mysql数据库密码
my...
分类:
编程语言 时间:
2014-06-15 19:17:52
阅读次数:
298
题目
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume no duplicates i...
分类:
其他好文 时间:
2014-06-15 17:27:16
阅读次数:
251
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
思路:第一种思路是一层一层的进行旋转,比较直观,但是花费的时间要久一些;第二种思路则比较取巧,首先沿着...
分类:
其他好文 时间:
2014-06-15 08:46:26
阅读次数:
170
原文:Swift语言指南(八)--语言基础之元组元组元组(Tuples)将多个值组合为一个复合值。元组内的值可以是任何类型,各个元素不需要为相同类型(各个元素之间类型独立,互不干扰--Joe.Huang)。下例中,(404, "Not Found")是一个描述HTTP状态码的元组。HTTP状态码是当...
分类:
其他好文 时间:
2014-06-15 00:44:56
阅读次数:
258
刚刚 部署了ii7的dll的有x86写的,就会出现以下这样的问题 iis 7 x86,Could not load file or assembly 'Name' or one of its dependencies. An attempt was made to load a program wi...
分类:
Web程序 时间:
2014-06-14 23:07:21
阅读次数:
428
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2014-06-14 08:52:31
阅读次数:
265
1.只有项目的net版本2.0以上的才可以引用到wcf的类库 2.HTTP 错误 404.17 -
Not Found 映射问题
WCF服务建立好,提示这个错误,缺少映射问题,要将应用程序池和项目版本都设置为相同而且2.0以上的版本,因为2.0中无法解析*.svc,svc从3.0才开始
3. 权限a...
分类:
其他好文 时间:
2014-06-13 17:48:40
阅读次数:
275
元组元组(Tuples)将多个值组合为一个复合值。元组内的值可以是任何类型,各个元素不需要为相同类型(各个元素之间类型独立,互不干扰--Joe.Huang)。下例中,(404,
"Not Found")是一个描述HTTP状态码的元组。HTTP状态码是当你向WEB服务器请求页面时服务器返回的一个特殊值...
分类:
其他好文 时间:
2014-06-13 15:34:14
阅读次数:
316