white-space:nowrap 在一行.slideLastlyNews img{margin-left:9px;margin-right:5px;margin-top:6px;width:5px;height:5px;width:5px;height:5px;display:inline;}....
分类:
Web程序 时间:
2015-02-10 18:21:17
阅读次数:
121
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...
分类:
其他好文 时间:
2015-02-10 15:10:42
阅读次数:
130
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2015-02-10 15:04:06
阅读次数:
186
题目 题目要求:去除sort int数组中的重复项。 Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array,...
分类:
其他好文 时间:
2015-02-10 13:31:25
阅读次数:
126
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you shouldreturn the list as 2->1->4->3.
Your algorithm should use only constant space. You ma...
分类:
其他好文 时间:
2015-02-10 09:18:43
阅读次数:
143
http://acm.timus.ru/problem.aspx?space=1&num=2018真心爱过,怎么能彻底忘掉题目大意:长度为n的串,由1和2组成,连续的1不能超过a个,连续的2不能超过b个dpa[i] 表示长度为i时以a为结尾的串的个数,dpb[i] 类似求dpa[i]时 需要枚举结尾...
分类:
其他好文 时间:
2015-02-09 18:16:33
阅读次数:
161
This webpage covers the space and time Big-O complexities of sorting algorithms used in Computer Science.Follow: sorting of big O实用的算法可视化工具:WIn32 Linu...
分类:
其他好文 时间:
2015-02-09 18:14:07
阅读次数:
164
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 i...
分类:
其他好文 时间:
2015-02-09 15:53:01
阅读次数:
129
Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space?A s...
分类:
其他好文 时间:
2015-02-09 15:40:55
阅读次数:
176
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:
其他好文 时间:
2015-02-09 15:40:23
阅读次数:
114