码迷,mamicode.com
首页 >  
搜索关键字:space    ( 18273个结果
Swap Nodes in Pairs--LeetCode
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space. You m...
分类:其他好文   时间:2015-04-13 12:58:22    阅读次数:77
Merge Sorted Array--LeetCode
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from B...
分类:其他好文   时间:2015-04-13 12:55:54    阅读次数:127
linux sed命令详解
1. Sed简介sed 是一种在线编辑器,它一次处理一行内容。处理时,把当前处理的行存储在临时缓冲区中,称为“模式空间”(pattern space),接着用sed命令处理缓冲区中的内容,处理完成后,把缓冲区的内容送往屏幕。接着处理下一行,这样不断重复,直到文件末尾。文件内容并没有 改变,除非你使用...
分类:系统相关   时间:2015-04-13 10:55:05    阅读次数:188
Bash Shell read file line by line and substring
#read one file line by line for line in $(cat test1.txt); do echo $line ; done; #while read split line by space while read line do for word in $line d...
分类:系统相关   时间:2015-04-13 08:15:09    阅读次数:193
Leetcode 2 Add Two Numbers
/** * ID: 2 * Name: Add Two Numbers * Data Structure: Linked List * Time Complexity: * Space Complexity: * Tag: LinkList * Difficult: Medium * Pro...
分类:其他好文   时间:2015-04-13 06:54:00    阅读次数:169
ART运行时Compacting GC为新创建对象分配内存的过程分析
在引进Compacting GC后,ART运行时优化了堆内存分配过程。最显著特点是为每个ART运行时线程增加局部分配缓冲区(Thead Local Allocation Buffer)和在OOM前进行一次同构空间压缩(Homogeneous Space Compact)。前者可提高堆内存分配效率,后者可解决内存碎片问题。本文就对ART运行时引进Compacting GC后的堆内存分配过程进行分析。...
分类:其他好文   时间:2015-04-13 01:45:17    阅读次数:412
88 Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:其他好文   时间:2015-04-12 22:30:06    阅读次数:155
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!