原题地址:https://oj.leetcode.com/problems/search-insert-position/题意:Given
a sorted array and a target value, return the index if the target is found. If
n...
分类:
编程语言 时间:
2014-06-11 11:28:40
阅读次数:
349
原题地址:https://oj.leetcode.com/problems/plus-one/题意:Given
a non-negative number represented as an array of digits, plus one to the
number.The digits are...
分类:
编程语言 时间:
2014-06-11 11:25:27
阅读次数:
304
原题地址:https://oj.leetcode.com/problems/rotate-image/题意:You
are given annxn2D matrix representing an image.Rotate the image by 90 degrees
(clockwise).Fo...
分类:
编程语言 时间:
2014-06-11 09:43:59
阅读次数:
1264
让我纠结了一天多的问题,给大家看下,有相同情况的可以不用浪费时间了,本人当时找了好半天都没找到什么有用的信息,项目在本地没有问题,但部署在服务器后,获取不到https页面的信息,加入下面的代码就可以了,因为iis7.5的安全协议比较高的原因。我的获取页面需要cookie,不需要的可以去掉;GET的方...
分类:
Web程序 时间:
2014-06-11 09:41:22
阅读次数:
351
原题地址:https://oj.leetcode.com/problems/powx-n/题意:Implement
pow(x,n).解题思路:求幂函数的实现。使用递归,类似于二分的思路,解法来自Mark Allen Weiss的《数据结构与算法分析》。代码:class
Solution: #...
分类:
编程语言 时间:
2014-06-11 08:59:33
阅读次数:
317
原题地址:https://oj.leetcode.com/problems/edit-distance/题意:Given
two wordsword1andword2, find the minimum number of steps required to
convertword1toword2....
分类:
编程语言 时间:
2014-06-11 08:58:49
阅读次数:
293
IE8以下请求助神之Douglas
Crockford:https://github.com/douglascrockford/json-jsJSON是一种格式化的字符串,特别适合在网络上传输,由Douglas
Crockford发明。JSON语法可以表示三种类型的值: 简单值:字符串、数值、布尔值...
分类:
编程语言 时间:
2014-06-11 08:08:17
阅读次数:
281
转自:http://www.blogjava.net/greatyuqing/archive/2013/02/13/395308.html首先需要说明的是,Apaceh服务器没有官方的64位版本,只有民间的高手自己制作的。下面是具体的安装步骤。在https://blackdot.be/downloa...
reference:https://projects.drogon.net/raspberry-pi/wiringpi/functions/Functions
(API)Some of the functions in theWiringPilibrary are designed to mimic...
一、安装第三方模块:MYSQLdb
1、地址:http://sourceforge.net/projects/mysql-python/
新的可用地址:https://pypi.python.org/pypi/MySQL-python/1.2.4 2、安装 安装前:(si...
分类:
数据库 时间:
2014-06-10 00:23:28
阅读次数:
372