码迷,mamicode.com
首页 >  
搜索关键字:reverse bits    ( 8842个结果
leetcode之Gray Code
Gray Code The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the cod...
分类:其他好文   时间:2014-08-27 14:45:48    阅读次数:236
位操作(C和指针)
/* **编写一个函数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
python灰帽子学习感想
Gray Hat Python Python Programming for hackers and reverse engineers Python灰帽子:黑客与逆向工程师的Python编程之道 差不多两周之前看到了这本书,心情很是激动啊,下定决心一定要好好看看。 好了一个星期的边看边写,发现激动的心情不在了,里面的内容都是为了底层debuger的 的内容,要安装的东西跟版...
分类:编程语言   时间:2014-08-27 10:55:17    阅读次数:225
python学习
字典的排序:按键排序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
对linux/Android源文件目录的理解
一 linux所有的源文件均在/usr/include文件夹下面。比如我们#include 就在此目录下。而#include 就在/usr/include/i386-linux-gnu/sys/目录下#include就在/usr/include/i386-linux-gnu/bits/目录下~~二 ...
分类:移动开发   时间:2014-08-27 01:37:56    阅读次数:307
[LeetCode] Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then le...
分类:其他好文   时间:2014-08-27 00:20:16    阅读次数:232
array的排序
reverse():倒序sort():简单数据类型sortOn():复杂数据类型数组.sort()默认排序数组.sort(排序方式)排序方式是一些定义好的整数常量数组.sort(比较函数)自定义的比较函数sortOn与sort的区别在于需要传入排序对象的属性,其他一直。如果不是复杂数据类型,如都是整...
分类:其他好文   时间:2014-08-26 13:37:56    阅读次数:181
leetcode - Reverse Linked List II
题目:Reverse Linked List IIReverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,ret...
分类:其他好文   时间:2014-08-26 13:35:46    阅读次数:223
URAL 1001 Reverse Root
输入输出优化:直接加BufferedStream 1 importjava.io.BufferedInputStream; 2 importjava.io.BufferedOutputStream; 3 importjava.io.PrintWriter; 4 importjava.util.Arr...
分类:其他好文   时间:2014-08-26 01:43:35    阅读次数:209
LeetCode | Reverse Words in a String
题目: Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". 思路: 方法1:首先把句子看做由词组成的,例如“A B C”,因此可以将句子的所有字符前后交换,得到“C...
分类:其他好文   时间:2014-08-25 22:53:04    阅读次数:194
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!