码迷,mamicode.com
首页 >  
搜索关键字:reverse    ( 5099个结果
CSU1567:Reverse Rot(DFS)
Description American Carnival Makers Inc. (ACM) has a long history of designing rides and attractions. One of their more popular attractions is a fun house that includes a room of mirrors. Their ...
分类:其他好文   时间:2015-04-07 17:48:42    阅读次数:175
[LeetCode] Reverse Bits
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 b...
分类:其他好文   时间:2015-04-07 15:37:12    阅读次数:95
C语言 编写一个函数reverse_string(char * string)(递归实现) 实现:将参数字符串中的字符反向排列
编写一个函数reverse_string(char * string)(递归实现) 实现:将参数字符串中的字符反向排列。 #include #include #include int reverse_string(char * str) { assert(str); int len=strlen(str); char *ch=str+len-1; whi...
分类:编程语言   时间:2015-04-07 13:53:58    阅读次数:171
Reverse Linked List II
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.No...
分类:其他好文   时间:2015-04-07 11:39:39    阅读次数:123
Leetcode #151 Reverse Words in a String
题目链接:https://leetcode.com/problems/reverse-words-in-a-string/反转字符串的方法有很多种。要求空间复杂度是常数的话,可以先反转所有的单词,然后反转整个字符串。例如"the sky is blue",可以先反转为"eht yks si eulb...
分类:其他好文   时间:2015-04-06 21:29:12    阅读次数:155
CSU1567: Reverse Rot(水题)
1567: Reverse Rot Time Limit: 1 Sec  Memory Limit: 128 MB Submit: 150  Solved: 82 [Submit][Status][Web Board] Description A very simplistic scheme, which was used at one time to encode in...
分类:其他好文   时间:2015-04-06 20:21:02    阅读次数:186
[Leet code 2]Two Sum
1 题目You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sin...
分类:其他好文   时间:2015-04-06 17:01:05    阅读次数:112
【C语言】编写一个函数reverse_string(char * string)(递归实现),将参数字符串中的字符反向排列,不能使用C函数库中的字符串操作函数。
//编写一个函数reverse_string(char * string)(递归实现) //实现:将参数字符串中的字符反向排列。 //要求:不能使用C函数库中的字符串操作函数。 #include #include void reverse_string(char const * string) { assert( string != NULL ); if( *string != '\0' ...
分类:编程语言   时间:2015-04-06 15:44:43    阅读次数:186
Add Two Numbers--LeetCode
题目: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it ...
分类:其他好文   时间:2015-04-06 15:42:46    阅读次数:108
【c语言】编写一个函数reverse_string(char * string)(递归实现) 实现:将参数字符串中的字符反向排列。
/*编写一个函数reverse_string(char * string)(递归实现) 实现:将参数字符串中的字符反向排列。 要求:不能使用C函数库中的字符串操作函数。*/ #include #include void reverse_string(char const * string) { assert( string != NULL ); if( *string != '\0' ...
分类:编程语言   时间:2015-04-05 21:58:58    阅读次数:155
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!