码迷,mamicode.com
首页 >  
搜索关键字:extra    ( 2903个结果
【leetcode刷题笔记】Populating Next Right Pointers in Each Node II
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 ...
分类:其他好文   时间:2014-07-22 08:37:34    阅读次数:289
linux 下 xampp配置
etc/hosts 修改 httpd.conf 修改根目录 #Include etc/extra/http-vhosts.conf 去掉#号 httpd-vhosts.conf 配置 站点名 重启服务器...
分类:系统相关   时间:2014-07-21 10:29:25    阅读次数:255
Android:Bundles in Activities and Fragments
Activity When you are creating a new instance of Activity via Intent, you can pass some extra data to the Activity. Data are stored in Bundle and can be retrieved by calling?getIntent().getExtras...
分类:移动开发   时间:2014-07-21 10:11:31    阅读次数:272
LeetCode || Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. 判断一个int值是否为回文数。 本题有几点需要注意: (1)不能用额外存储空间,也就是说只能用常数空间解决;诸如将int转换为string再去比较字符是不可行的; (2)判断回文数的方法有两个:从中间开始向两头判断、从两头向中间判断;后者更简...
分类:其他好文   时间:2014-07-19 23:22:39    阅读次数:345
LeetCode: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-07-19 22:19:36    阅读次数:202
[leetcode]Linked List Cycle
Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?算法思路1:快慢指针,当两个指针相遇,则表示有环,...
分类:其他好文   时间:2014-07-19 18:38:30    阅读次数:198
php中配置虚拟主机
在httpd.conf 文件中启用 httpd-vhosts.conf就是把#注销掉# Virtual hosts ,虚拟主机Include conf/extra/httpd-vhosts.conf假设我们的虚拟主机在 f:/myweb 盘 [该站点,事先有]设置http-vhosts.conf文件...
分类:Web程序   时间:2014-07-18 19:35:18    阅读次数:261
[leetcode]Palindrome Number
Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers b...
分类:其他好文   时间:2014-07-18 15:17:26    阅读次数:201
MySQL复制表结构、表数据
1、复制表结构及数据到新表CREATE TABLE 新表SELECT * FROM 旧表这种方法会将oldtable中所有的内容都拷贝过来,当然我们可以用delete from newtable;来删除。不过这种方法的一个最不好的地方就是新表中没有了旧表的primary key、Extra(auto...
分类:数据库   时间:2014-07-18 00:07:21    阅读次数:261
[leetcode]Set Matrix Zeroes
Set Matrix ZeroesGiven amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.Follow up:Did you use extra space?A straight...
分类:其他好文   时间:2014-07-17 23:34:02    阅读次数:486
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!