码迷,mamicode.com
首页 >  
搜索关键字:extra    ( 2903个结果
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? (i...
分类:其他好文   时间:2014-06-14 08:52:31    阅读次数:265
Leetcode:Linked List Cycle 链表是否存在环
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-06-13 14:41:54    阅读次数:238
[leetcode]Palindrome Number @ Python
原题地址: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
一些问题
一个完整的文件,通过read()读取,还没有读完就write()到内存卡里面,内存卡里面是否有文件生成?文件名是怎么样的?①imageUrls = getIntent().getStringArrayExtra(Extra.IMAGES);②Bundle bundle = getIntent().g...
分类:其他好文   时间:2014-06-09 21:22:20    阅读次数:220
LeetCode: Populating Next Right Pointers in Each Node II [117]
【题目】 Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution still work? Note: You may only use constant extra space. For example, Given the following binary tre...
分类:其他好文   时间:2014-06-08 15:46:22    阅读次数:303
LeetCode: Pascal's Triangle II [119]
【题目】 Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. Note: Could you optimize your algorithm to use only O(k) extra space? 【题意】 给定行索引k, k从0开始,返回该索引指向的杨辉三角的行 要求只能使用O(k)的额外空间 【思路】 ...
分类:其他好文   时间:2014-06-08 15:46:02    阅读次数:272
[LeetCode] Palindrome Number [13]
题目: Determine whether an integer is a palindrome. Do this without extra space. 解题思路: 判断一个int型整数是不是回文数字,这个题也不难,依次取得数字最高位和最低位进行比较,就可以判断是不是回文数字。需要注意的是负数不是回文数字。 代码实现:...
分类:其他好文   时间:2014-06-08 15:35:48    阅读次数:375
LeetCode:Remove Duplicates from Sorted Array && Remove Element
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...
分类:其他好文   时间:2014-06-06 06:53:19    阅读次数:347
jQuery MiniUI开发系列之:创建组件对象
原文:http://miniui.com/bbs/forum.php?mod=viewthread&tid=20&extra=page%3D1 jQuery MiniUI可以使用Javascript和Html两种方式来创建对象。 1)Javascript创建对象 使用JavaScript创建对象,是...
分类:Web程序   时间:2014-06-04 18:01:23    阅读次数:390
Leetcode Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?借用博...
分类:其他好文   时间:2014-06-02 07:32:33    阅读次数:291
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!