码迷,mamicode.com
首页 >  
搜索关键字:extra    ( 2903个结果
leetcode - 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 place with...
分类:其他好文   时间:2014-10-25 18:51:14    阅读次数:143
LeetCode Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? (ie, -1) If you are thinking of converting th...
分类:其他好文   时间:2014-10-25 09:21:10    阅读次数:182
android 分享功能
Intent intent = new Intent(Intent.ACTION_SEND);intent.setType("image/*");intent.putExtra(Intent.EXTRA_SUBJECT, "Share");intent.putExtra(Intent.EXTRA_T...
分类:移动开发   时间:2014-10-24 18:18:37    阅读次数:231
屏幕密度与分辨率
A set of six generalizeddensities:ldpi(low) ~120dpimdpi(medium) ~160dpihdpi(high) ~240dpixhdpi(extra-high) ~320dpixxhdpi(extra-extra-high) ~480dpixxxh...
分类:其他好文   时间:2014-10-24 12:51:53    阅读次数:236
判断链表是否有环
Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? 关键点:1)判断链表是否有环。 2)一个小坑在判断root和root的next是否为空上。 3)可以看为追及问题。最关键的坑在判断快走(每次走2步的节点),走1步会...
分类:其他好文   时间:2014-10-23 00:03:10    阅读次数:276
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-10-22 19:46:16    阅读次数:220
查看数据库的大小
1.查看数据库的大小mysql>desctables;+-----------------+---------------------+------+-----+---------+-------+|Field|Type|Null|Key|Default|Extra|+-----------------+---------------------+------+-----+---------+-------+|TABLE_CATALOG|varchar(512)|NO|||||TABLE..
分类:数据库   时间:2014-10-22 16:06:51    阅读次数:218
Linked List Cycle 判断一个链表是否存在回路(循环)
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?注意,链表循环并不是尾指针和头指针相同,可能是在中间某一段形成一个环路,所以不能只判...
分类:其他好文   时间:2014-10-21 22:56:24    阅读次数:335
g++ error: extra qualification on member [-fpermissive]
以下这段代码是在头文件里面的,DmaOpen DmaClose函数也是直接在class pcie_chip{}里面的。加了个额外的pcie_chip::才会报错。//delete pcie_chip:: this scope identifier to solve g++ error:http://...
分类:其他好文   时间:2014-10-21 11:57:03    阅读次数:145
Palindrome Number
回文数字。玩过回文字符串之后在玩一个回文数字,相比于最长回文字符串的巧妙,这道题目唯一值得称道的地方可能就是那句Do this without extra space,可以说这是这道题目明面上给出的唯一束缚,当然如果要是看了提示的话,会发现输入的整数是有负整数的可能。也就是说还要处理负数的问题,在这...
分类:其他好文   时间:2014-10-21 00:47:55    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!