码迷,mamicode.com
首页 >  
搜索关键字:space    ( 18273个结果
[LeetCode] Palindrome Linked List
Palindrome Linked ListGiven a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?将链表拆成两半,后一半反转后...
分类:其他好文   时间:2015-07-11 18:23:04    阅读次数:155
leetcode-58-Length of Last Word
Length of Last Word   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...
分类:其他好文   时间:2015-07-11 09:13:11    阅读次数:106
鼠标指针变图片
html{cursor:url(http://ctc.i.gtimg.cn/qzone/space_item/orig/13/5837.gif),default;}
分类:其他好文   时间:2015-07-11 06:48:54    阅读次数:123
Palindrome Linked List
Given a singly linked list, determine if it is a palindrome.Follow up: Could you do it in O(n) time and O(1) space?思路: 把链表一分为二,把右边的一半翻转,再逐个比对左右的链表即可。/** * Definition for singly-linked list. * struc...
分类:其他好文   时间:2015-07-10 23:46:56    阅读次数:388
[LeetCode][Java] Remove Duplicates from Sorted Array
题目: 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, you must do this in p...
分类:编程语言   时间:2015-07-10 22:22:11    阅读次数:198
【插头DP】URAL 1519 Formula 1
通道:http://acm.timus.ru/problem.aspx?space=1&num=1519题意:单回路,经过全部可达点,有阻碍点。代码:#include #include #include using namespace std;const int MAX_N = 13;const i...
分类:其他好文   时间:2015-07-10 18:56:11    阅读次数:111
df命令
df - report file system disk space usage 显示文件系统磁盘空间使用情况 语法: df [OPTION]... [FILE]... 描述: df displays the amount of disk space available on the file sy...
分类:其他好文   时间:2015-07-10 18:49:14    阅读次数:138
USB - Open Host Controller Operational Registers
The Host Controller (HC) contains a set of on-chip operational registers which are mapped into a noncacheable portion of the system addressable space....
分类:其他好文   时间:2015-07-10 18:36:18    阅读次数:98
【LeetCode】234. Palindrome Linked List (2 solutions)
Palindrome Linked ListGiven a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?解法一:一次遍历,装入vec...
分类:其他好文   时间:2015-07-10 12:52:07    阅读次数:93
Leetcode 234 Palindrome Linked List
Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?O(n)空间:存成数组后比较class Solution: # @...
分类:其他好文   时间:2015-07-10 10:49:54    阅读次数:101
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!