Question:Sort a linked list inO(nlogn) time
using constant space complexity.Solution:Merge sort.找到链表的中间的那个ListNode. 1 /** 2
* Definition for singly-l....
分类:
其他好文 时间:
2014-06-12 17:59:34
阅读次数:
285
xmind文件在拷贝到其他电脑上的时候,打开报如下的错误信息:‘java.lang.OutOfMemoryError‘:Javaheapspace如下图所示:具体原因就不再次做过多的解释了,按照如下的方法修改后,本人的文件已可以正常打开到XMIND安装的根目录下面找到XMind.ini文件,并打开查找-vmargs一般在文..
分类:
其他好文 时间:
2014-06-10 23:53:53
阅读次数:
495
Ubuntu
12.04中文输入法的安装Ubuntu上的输入法主要有小小输入平台(支持拼音/二笔/五笔等),Fcitx,Ibus,Scim等。其中Scim和Ibus是输入法框架。在Ubuntu的中文系统中自带了中文输入法,通过Ctrl+Space可切换中英文输入法。这里我们主要说下Ubuntu英文系...
分类:
其他好文 时间:
2014-06-10 21:54:39
阅读次数:
301
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...
分类:
其他好文 时间:
2014-06-10 20:44:02
阅读次数:
298
题目
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 respective...
分类:
其他好文 时间:
2014-06-10 18:28:49
阅读次数:
207
原题地址:https://oj.leetcode.com/problems/palindrome-number/题意:Determine
whether an integer is a palindrome. Do this without extra space.click to show
spo...
分类:
编程语言 时间:
2014-06-10 16:06:52
阅读次数:
286
There are three DMVs you can use to track
tempdb
usage:sys.dm_db_task_space_usagesys.dm_db_session_space_usagesys.dm_db_file_space_usageThe
first two ...
分类:
数据库 时间:
2014-06-10 11:27:07
阅读次数:
307
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
Clarification:
What constitutes a word?
A sequence of non-space ch...
分类:
其他好文 时间:
2014-06-10 11:12:06
阅读次数:
185
Given a string s consists of upper/lower-case alphabets and empty space characters '
', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is...
分类:
其他好文 时间:
2014-06-10 10:52:03
阅读次数:
180