码迷,mamicode.com
首页 >  
搜索关键字:reverse intger    ( 5102个结果
Reverse Linked List II
Reverse Linked List II问题:Reverse a linked list from positionmton. Do it in-place and in one-pass.思路: 三行情书,用的飞起我的代码:public class Solution { public ...
分类:其他好文   时间:2015-03-14 13:42:54    阅读次数:103
Leetcode: Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return...
分类:其他好文   时间:2015-03-14 07:24:14    阅读次数:139
LeetCode 190 Reverse Bits
Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 001110010...
分类:其他好文   时间:2015-03-14 06:13:47    阅读次数:147
leetcode-2 Add Two Numbers 计算链表两个对应和的问题
?? 1.问题描述: You are given two linked lists representing two non-negativenumbers. The digits are stored in reverse order and each of their nodes containa single digit. Add the two numbers and re...
分类:其他好文   时间:2015-03-13 12:47:51    阅读次数:721
AliCTF2014题目解析之<reverse-300>
reverse-300 工具:IDA pro、WinDbg、UPX、Resource Hacker 先运行程序看效果点击按钮直接崩溃,同时由于程序放到32位的xp虚拟机中不能运行,应该是64位程序。根据提示程序本身就是有问题的,所以直接上IDA pro,发现貌似是用UPX加了壳的: 使用UPX脱壳看...
分类:其他好文   时间:2015-03-13 10:37:47    阅读次数:181
【leetcode】Reverse Linked List II (middle)
Reverse 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,return1->4->3->2->5->NULL.思路...
分类:其他好文   时间:2015-03-12 22:12:16    阅读次数:156
reverse_string(char *string)递归实现字符串翻转
函数实现之前 先看一个例子 void fun(int i) { if (i > 0) fun(i / 2); printf("%d ",i); } int main(void) { fun(10); return 0; } 输出结果是什么? 这是《c语言深度剖析》中的一个例子  在这个例子中 printf(“%d ”,i);语句是fun函数的一部分 必定执行一...
分类:其他好文   时间:2015-03-12 15:12:32    阅读次数:149
无符号整数翻转函数实现reverse_bits(unsigned int value)
题目:Reverse BitsReverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010...
分类:其他好文   时间:2015-03-12 14:57:14    阅读次数:125
C++单链表反转、两有序链表合并仍有序
1 #include 2 3 struct Node 4 { 5 int data; 6 Node *next; 7 }; 8 9 typedef struct Node Node; 10 11 Node *Reverse(Node *head) 12 { ...
分类:编程语言   时间:2015-03-12 13:03:13    阅读次数:168
LeetCode190——Reverse Bits
Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 001110010...
分类:其他好文   时间:2015-03-12 11:29:01    阅读次数:120
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!