Implement pow(x, n).
public class Solution {
public double pow(double x, int n) {
if(n>0) return powInt(x,n);
else return 1/powInt(x,-n);
}
private double powInt(double x, int n){
if...
分类:
其他好文 时间:
2014-09-26 20:00:48
阅读次数:
112
算法思想:http://www.cnblogs.com/lichen782/p/leetcode_minimum_window_substring_3.html 1 public class Solution { 2 public String minWindow(String S, Str...
问题: 使用parse平台时需要依赖python 2.7, centos6.5中python版本是2.6.相关因素:1. yum依赖python,因而卸载python时需要考虑这个问题 2. yum没有2.7 python package 因而不能直接upgrade解决方案: 1. 安...
分类:
编程语言 时间:
2014-09-26 10:32:28
阅读次数:
214
一、The way of the programproblem solving: The process of formulating a problem, ?nding a solution, and expressing the solution.high-level language: A p...
分类:
编程语言 时间:
2014-09-25 13:13:08
阅读次数:
253
题目描述:Sort a linked list using insertion sort.解决方案:该题目就是用插入排序来对链表进行排序,很简单,直接上代码。 1 class Solution { 2 public: 3 ListNode *insertionSortList(ListNod...
分类:
其他好文 时间:
2014-09-24 19:49:57
阅读次数:
137
贴出作者原帖:http://www.laozhe.net/324.html 主要就是几个文件: cd??/etc/update-motd.d/ ls 00-header?????90-updates-available??98-fsck-at-reboot
10-help-text??91-release-upgrade????9...
分类:
其他好文 时间:
2014-09-24 12:39:56
阅读次数:
771
如果只有使用Accdet 作为耳机的检测,没有使用EINT_HP 作为拔插检测。会遇到概率性:短按HOOK键,无法接听电话;短按HOOK键,会变成长按的效果,挂断电话。
在accdet_irq_handler函数 return 1之前做如下修改:
//add begin
while((pmic_pwrap_read(ACCDET_IRQ_STS) & IRQ_STAT...
分类:
移动开发 时间:
2014-09-24 12:30:06
阅读次数:
346
In this Document
Goal
Solution
APPLIES TO:
Oracle Order Management - Version 11.5.10.2 to 12.1.3 [Release 11.5.10 to 12.1]
Information in this document app...
分类:
其他好文 时间:
2014-09-24 00:37:15
阅读次数:
390
Setuptools的官方页面 Easily download, build, install, upgrade, and uninstall Python packages 它是一个对python的包进行安装,升级,卸载的模块(包) python2.x: wget?https://bootstrap.pypa.io/ez_setu...
分类:
其他好文 时间:
2014-09-23 21:30:45
阅读次数:
217
第一种是迭代,第二种是DP,第三种是斐波那契数列的通项公式。此外,soulmachine的书上还指出,递归也可以,只是速度太慢。 1 #include 2 #include 3 using namespace std; 4 5 class Solution { 6 public: 7 ...
分类:
其他好文 时间:
2014-09-23 16:16:54
阅读次数:
224