码迷,mamicode.com
首页 >  
搜索关键字:permgen space    ( 18346个结果
[C++]LeetCode: 78 Unique Paths II
题目: Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1 and 0 respectively...
分类:编程语言   时间:2015-01-08 15:29:48    阅读次数:162
POJ 2031 Building a Space Station
题意 有n个空间站 接下n行依次输入n个空间站的x,y,z坐标和半径 求连接全部空间站总共至少要修多长的桥也是裸的最小生成树 注意距离不会小于0 就是两个空间站相交的时候#include#include#include#includeusing namespace std;const int N =...
分类:其他好文   时间:2015-01-08 11:09:21    阅读次数:227
LeetCode-Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements fro...
分类:其他好文   时间:2015-01-08 09:43:18    阅读次数:169
Eclipse常用快捷键
1几个最重要的快捷键java 自动生成get set方法的快捷键是什么?如果你说的是Eclipse,也许你还说是MyEclipse快捷键: Alt + Shift + S, 等一会,再按 R注释快捷键先敲“/”在敲两个**,然后回车代码助手:Ctrl+Space(简体中文操作系统是Alt+/)快速修...
分类:系统相关   时间:2015-01-08 09:26:26    阅读次数:229
JAVA-Linked List Cycle I&&Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up: Can you solve it without using extra space?   第一题要求是否有环 从图中可以看出 使用快慢指针 只要有环两者必定会相遇  另外从...
分类:编程语言   时间:2015-01-07 14:59:22    阅读次数:178
XML中的非法字符转化成实体
问题如果XML有非法字符比如 "·",或者HTML标签。XML在解析的过程中就会出错。就无法正常解析,或者把xml反射成实体。有些字符,像(greater-than>>3符号实体编辑结果描述实体名称实体编号 non-breaking space¡inverted exclamation ma....
分类:其他好文   时间:2015-01-07 14:43:25    阅读次数:245
[C++]LeetCode: 73 Linked List Cycle
题目: Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? 思路:使用快慢两个指针。开始时,两个指针同时指向head,之后slow每次前行一步,fast每次前行两步。如果链表有环,这两个指针一定会相遇,如果没有...
分类:编程语言   时间:2015-01-07 13:16:22    阅读次数:172
[C++]LeetCode: 73 Linked List Cycle II
题目: Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up: Can you solve it without using extra space? 思路: 可以参考 LeetCode: 73 Linked ...
分类:编程语言   时间:2015-01-07 13:08:14    阅读次数:161
[LeetCode#23]Merge k Sorted Lists
The problem:Sort a linked list inO(nlogn) time using constant space complexity.My analysis:The is problem could be elegantly solved by using merge.The...
分类:其他好文   时间:2015-01-07 01:50:28    阅读次数:112
[LeetCode#148]Sort List
The problem:Sort a linked list inO(nlogn) time using constant space complexity.My analysis:The idea behind this problem is easy : merge sort !But we s...
分类:其他好文   时间:2015-01-07 00:28:58    阅读次数:181
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!