码迷,mamicode.com
首页 >  
搜索关键字:space    ( 18273个结果
LeetCode: Linked List Cycle [141]
【题目】Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?【题意】 推断一个单向链表是否有环【思路】 维护两个指针p1和p2,p1.....
分类:其他好文   时间:2014-09-28 21:16:55    阅读次数:195
leetcode - Swap Nodes in Pairs
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 space. Y...
分类:其他好文   时间:2014-09-28 14:33:56    阅读次数:178
css表格单元格中的长文本的显示问题
自动换行问题,正常字符的换行是比较合理的,而连续的数字和英文字符常常将容器撑大,挺让人头疼,下面介绍的是CSS如何实现换行的方法对于div,p等块级元素正常文字的换行(亚洲文字和非亚洲文字)元素拥有默认的white-space:normal,当定义的宽度之后自动换行html正常文字的换行(亚洲文字和...
分类:Web程序   时间:2014-09-28 10:48:31    阅读次数:170
Sort List
题目描述:Sort a linked list inO(nlogn) time using constant space complexity.解题方案:题目要求的时间复杂度是O(nlogn),常数级空间复杂度。所以这里用了归并排序,归并排序在数组上操作比较方便,但是这里要排序的是链表。我们用到两个...
分类:其他好文   时间:2014-09-27 18:56:10    阅读次数:231
SQL Server 查看数据库空间分配情况的 2 种方法
方法 1、 sys.dm_db_file_space_usage。方法 2、 sys.dm_db_session_space_usage。---------------------------------------------------------------------------------...
分类:数据库   时间:2014-09-27 00:22:49    阅读次数:323
leetcode 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 for a...
分类:其他好文   时间:2014-09-26 19:48:18    阅读次数:182
[leetcode] Word Break
1 problemGiven a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.F...
分类:其他好文   时间:2014-09-26 19:22:58    阅读次数:165
USB/232/TTL(串口通信)
1.USB:电脑的USB口信号时USB信号,为差分信号,电压范围:+400mV~-400mV间变化;直流电压5V 驱动电流500MA2.232电平: 逻辑1(MARK)=-3V~-15V 逻辑0(SPACE)=+3~+15V3.485电平: 它是差分信号,两信号线 +2V~+6V表示“0”, ...
分类:其他好文   时间:2014-09-26 19:18:38    阅读次数:173
css实现强制不换行/自动换行/强制换行
强制不换行div{ white-space:nowrap;}自动换行div{ word-wrap: break-word; word-break: normal; }强制英文单词断行div{ word-break:break-all;}word-wrap:css的 wor...
分类:Web程序   时间:2014-09-26 17:50:58    阅读次数:192
HTTP Status 500 - Handler processing failed; nested exception is java.lang.OutOfMemoryError: PermGen
HTTP Status 500 - Handler processing failed; nested exception is java.lang.OutOfMemoryError: PermGen space发生此问题的环境信息:系统:CentOS 6.5Tomcat:Tomcat 7.0.6PermGen spacePermGen space的全称是Permanent Generation ...
分类:编程语言   时间:2014-09-25 20:55:07    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!