码迷,mamicode.com
首页 >  
搜索关键字:space    ( 18273个结果
141. 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?Cracking Interview书上原题,快慢指针,如果有环肯定相遇。/** *...
分类:其他好文   时间:2015-04-18 08:39:30    阅读次数:127
a标签中的文字超出固定长度则隐藏
css样式: max-width: 230px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display:block; float:left;...
分类:其他好文   时间:2015-04-17 20:35:38    阅读次数:146
QtGui.QGridLayout
The most universal layout class is the grid layout. This layout divides the space into rows and columns. To create a grid layout, we use theQtGui.QGri...
分类:其他好文   时间:2015-04-17 19:49:04    阅读次数:188
3D页面切换效果
最近看到魅族、小米等官网上面产品介绍页面做的很炫酷,于是找啊找,找到了类似的效果,大家可以看看学校学习,希望对你有用: Demo地址: http://www.slashie.org/space.js/demo2.html 提供两个Demo,效果都超级...
分类:其他好文   时间:2015-04-17 18:42:51    阅读次数:134
leetcode || 99、Recover Binary Search Tree
problem: Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n) space is pretty straight forwar...
分类:其他好文   时间:2015-04-17 18:14:49    阅读次数:148
Eclipse中设置JVM内存
Eclipse中设置JVM内存今天在eclipse中测试把文档转换为图片的时候,报出了下面的错误:java.lang.OutOfMemoryError: Java heap space从上边的异常信息可以看到,JVM需要使用的内存已经超过了我们分配给虚拟机可以使用的最大内存。所以问题就转化为如何设置...
分类:系统相关   时间:2015-04-17 17:47:47    阅读次数:152
在SQL中查看文件组中有哪些表
SELECT o.[name], o.[type], i.[name], i.[index_id], f.[name]FROM sys.indexes iINNER JOIN sys.filegroups fON i.data_space_id = f.data_space_idINNER JOIN...
分类:数据库   时间:2015-04-17 17:44:40    阅读次数:125
[LeetCode] Palindrome Number
Palindrome Number Determine whether an integer is a palindrome. Do this without extra space. 解题思路: 思路比较简单,将原来的数求逆数。若逆数与原数相等,返回true,否则,返回false。弄清楚,负数能否回文?若溢出咋办?这里总结一下,若遇到整数的逆转,或者字符转化为整数,就需要考虑是否溢...
分类:其他好文   时间:2015-04-17 15:42:22    阅读次数:115
26. Remove Duplicates from Sorted Array
题目:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space fo...
分类:其他好文   时间:2015-04-17 15:38:25    阅读次数:110
【leetcode】Maximum Gap(hard)★
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:其他好文   时间:2015-04-17 15:17:10    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!