Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For exam...
分类:
其他好文 时间:
2014-08-28 17:47:15
阅读次数:
208
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1]. 1...
分类:
其他好文 时间:
2014-08-28 11:12:49
阅读次数:
209
Guava的Ordering可以说是更加强大的Javacomparator,Ordering本身就是一个继承于Comparator的接口,但是它还支持一些基于Comparator的操作例如reverse,max,min,它甚至还可以通过不同Ordering之间的组合或者链接(用Decorate的模式)完成更加强大的排序功能。创建有四种比较常见..
分类:
其他好文 时间:
2014-08-28 09:50:19
阅读次数:
154
XXD(1) General Commands Manual XXD(1)NAME xxd - make a hexdump or do the reverse.SYNOPSIS xxd -h[elp] xxd [options] [infile [outfile]] xxd -r[evert] [...
分类:
系统相关 时间:
2014-08-27 23:16:18
阅读次数:
665
LeetCode: Binary Tree Zigzag Level Order TraversalGiven a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to...
分类:
其他好文 时间:
2014-08-27 23:10:28
阅读次数:
316
LeetCode: Binary Tree Level Order TraversalGiven a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level ...
分类:
其他好文 时间:
2014-08-27 21:55:48
阅读次数:
326
LeetCode: Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from...
分类:
其他好文 时间:
2014-08-27 21:54:58
阅读次数:
234
/*
**编写一个函数unsigned int reverse_bits(unsigned int value);这个函数的返回值是把value的二进制位模式从左到右变换一下后的值。
**例如在32位机器上,25这个值包含下列各位00000000000000000000000000011001 函数的返回值应该是10011000 0000 0000 0000 0000 0000 0000
...
分类:
其他好文 时间:
2014-08-27 10:59:07
阅读次数:
199
Gray Hat Python Python Programming for hackers and reverse engineers
Python灰帽子:黑客与逆向工程师的Python编程之道
差不多两周之前看到了这本书,心情很是激动啊,下定决心一定要好好看看。
好了一个星期的边看边写,发现激动的心情不在了,里面的内容都是为了底层debuger的
的内容,要安装的东西跟版...
分类:
编程语言 时间:
2014-08-27 10:55:17
阅读次数:
225
字典的排序:按键排序sorted(dic.iteritems(),key=lambdadic:dic[0],reverse=False)按值排序sorted(dic.iteritems(),key=lambdadic:dic[1],reverse=False)如果在继承关系中,父类中的字段是__fi...
分类:
编程语言 时间:
2014-08-27 08:10:37
阅读次数:
276