public static String DEPLOY_PATH = null;
static
{
String CurrentClassFilePath = Constant.class.getResource("").getPath();
int lastpath = CurrentClassFilePath.lastIndexOf("WEB-INF/");
DEPLOY_PA...
分类:
编程语言 时间:
2015-03-13 18:45:02
阅读次数:
146
Sort List问题:Sort a linked list inO(nlogn) time using constant space complexity.思路: 归并排序我的代码:public class Solution { public ListNode sortList(ListN...
分类:
其他好文 时间:
2015-03-11 21:30:59
阅读次数:
165
golang 中支持 长量 const or staticpackage mainimport ( "fmt" "math")const s string = "constant"const a = 3000func main() { const s = 3000 fmt.P...
分类:
其他好文 时间:
2015-03-11 14:36:18
阅读次数:
139
一、利用无线来查看adb shell> adb tcpip 5555连接:> adb connect IP:5555见后文《调试注意事项》二、模拟按键> adb shell input keyevent "value"部分常见按键对应值:Key | Constant ValueBack 4Power...
分类:
数据库 时间:
2015-03-10 11:41:42
阅读次数:
204
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant spa...
分类:
其他好文 时间:
2015-03-10 10:26:23
阅读次数:
136
Sort a linked list in O(n log n) time using constant space complexity.这题的时间复杂度要求是O(n logn),很容易想到用mergeSort来解。/** * Definition for singly-linked list. ...
分类:
其他好文 时间:
2015-03-09 23:54:04
阅读次数:
212
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...
分类:
其他好文 时间:
2015-03-09 22:23:10
阅读次数:
206
题目:
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant...
分类:
其他好文 时间:
2015-03-09 20:58:23
阅读次数:
129
结构如下:magic: class:文件的特定前缀,值为CAFEBABEminor_version:小版本号major_version:大版本号constant_pool_count:常量池数量constant_pool:常量池中的各种值access_flags:class:访问标志 如 privi...
分类:
其他好文 时间:
2015-03-09 18:51:29
阅读次数:
165
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-03-09 12:55:19
阅读次数:
122