https://leetcode.com/problems/sort-list/Sort ListSort a linked list inO(nlogn) time using constant space complexity.来自http://www.cnblogs.com/zuoyuan/p...
分类:
其他好文 时间:
2015-07-02 22:15:21
阅读次数:
149
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) – Push element x onto stack.
pop() – Removes the element on top of the stack.
top() – Get the...
分类:
其他好文 时间:
2015-07-01 22:14:05
阅读次数:
135
1、常量注入方式package com.guice.ConstantInjectDemo;import com.google.inject.Binder;
import com.google.inject.Guice;
import com.google.inject.Inject;
import com.google.inject.Module;
import com.google.inject....
分类:
其他好文 时间:
2015-07-01 12:16:50
阅读次数:
121
题目链接 题目要求: Sort a linked list inO(nlogn) time using constant space complexity. 满足O(nlogn)时间复杂度的有快排、归并排序、堆排序。在这里采用的是归并排序(空间复杂度O(logn)),具体程序如下: 1 /...
分类:
其他好文 时间:
2015-06-27 19:53:14
阅读次数:
102
long groupId = Constant.createGroupId; ContentValues values = new ContentValues(); for(int i=0,len=Constant.contactList.size();i<len;i++) { value...
分类:
移动开发 时间:
2015-06-27 19:35:57
阅读次数:
146
c++学习(1)1.const C VS C++:在c语言中const是一个只读变量(ReadOnly Varible),在c++中const只是代表常量(Constant)。例:const int n=10;int arry[10]//OK in c++ error in c。2.指针的两个属性:...
分类:
编程语言 时间:
2015-06-26 23:34:39
阅读次数:
195
CUDA存储器模型:
GPU片内:register,shared memory;
host 内存: host memory, pinned memory.
板载显存:local memory,constant memory, texture memory, texture memory,global memory;
register: 访问延迟极低;
基本单元:register file (32bit/each)
计算能力1.0/1.1版...
分类:
其他好文 时间:
2015-06-25 17:29:44
阅读次数:
144
今天在用thinkphp框架做网站的时候,在调用model模型是意外发生Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]错误,下面是我百度的结果,大部分说解决问题可以分为以下两类:1.window...
分类:
数据库 时间:
2015-06-23 23:01:27
阅读次数:
384
??
Eclipse有时候不能生成R.java文件,非常烦人。这时候,我们可以手工生成它。
命令为:
aapt package --non-constant-id -f -m -M
-S -I
-J<abs_path_to_dir_that_should_contain_gen_R_java)
--generate-depe...
分类:
移动开发 时间:
2015-06-23 18:09:16
阅读次数:
147
Signals & VariablesVHDL 提供了signal和variable两种对象来处理非静态数据;提供了constant和generic来处理静态数据。constant和signal是全局的,可以在顺序执行的代码中,也可以在并发执行的代码中;variable是局部的,只能值顺序代码中,并...
分类:
其他好文 时间:
2015-06-23 09:51:47
阅读次数:
168