码迷,mamicode.com
首页 >  
搜索关键字:space    ( 18273个结果
Single Number II
题目描述 链接地址 解法 算法解释题目描述Given 3*n + 1 numbers, every numbers occurs triple times except one, find it.ExampleGiven [1,1,2,3,3,3,2,2,4,1] return 4ChallengeOne-pass, constant extra space.链接地址http://www.lintc...
分类:其他好文   时间:2015-07-19 23:39:56    阅读次数:140
Merge Sorted Array
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold additio...
分类:其他好文   时间:2015-07-19 13:25:42    阅读次数:162
Palindrome Linked List
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?思路: 先选择中间的....
分类:其他好文   时间:2015-07-19 13:15:11    阅读次数:96
Shell编程中括号判断中赋值语句和判断语句
#!/bin/bashdeclare var="xxx" # without space and use one = #1.judge whether the assignment statement returns trueecho "----------------------test assi...
分类:系统相关   时间:2015-07-19 10:00:43    阅读次数:242
[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?思路利用双指针法找到链表中点位置,链表中点以后的的元素(不包括中点元素)翻转,再跟链表中点位置以前的元素一一匹配。代码/*----------------------...
分类:其他好文   时间:2015-07-18 17:05:25    阅读次数:91
Linux索引节点(Inode:no space for device)用满导致的一次故障
在storm集群上出现的no space for device的错误,任何服务都无法开启,文件无法创建,发现是inode已满,然后找到解决方案并成功解决...
分类:系统相关   时间:2015-07-18 15:38:27    阅读次数:160
文字换行
一般的元素都有设置自动换行的自动换行:word-wrap: break-word;word-break: normal; 强制不换行:white-space:nowrap;CSS设置不转行:overflow:hidden 隐藏white-space:normal 默认 //***pre 换行和...
分类:其他好文   时间:2015-07-18 12:31:54    阅读次数:113
Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)成功烧录方法
问题:Arduino:1.6.3 (Windows 7), 板:"Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"Sketch uses 846 bytes (2%) of program storage space. Maximum is 30,72...
分类:其他好文   时间:2015-07-18 10:58:20    阅读次数:593
073 Set Matrix Zeroes
073 Set Matrix Zeroes这道题唯一有点tricky的地方就是 需要O(1) 的space, 这样就利用第一个行 和第一列作为整个matrix的标记位,再用 row 和 col两个作为第一列和第一个行的标志位class Solution: # @param {integer[]...
分类:其他好文   时间:2015-07-18 07:04:27    阅读次数:102
053第256题
256.Sales details are being stored on a daily basis in the SALES_2007 table. A large amount of data is added to the table daily. To save disk space, you issued the following command: ALTER TABLE sal...
分类:其他好文   时间:2015-07-17 22:48:42    阅读次数:114
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!