码迷,mamicode.com
首页 >  
搜索关键字:reverse    ( 5099个结果
整数逆序
1 class Solution 2 { 3 public: 4 5 int reverse(int x){ 6 int result=0; 7 while(x!=0) 8 { 9 ...
分类:其他好文   时间:2014-10-27 22:55:25    阅读次数:165
ACM step 1.2.2 Text Reverse
gnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words and then outpu...
分类:其他好文   时间:2014-10-27 20:57:39    阅读次数:218
LeetCode-Reverse Nodes in k-Group
Given this linked list:1->2->3->4->5Fork= 2, you should return:2->1->4->3->5Fork= 3, you should return:3->2->1->4->5思路:一开始是想要动态规划的方式,即写一个反转函数,每K个字符调用一...
分类:其他好文   时间:2014-10-27 10:48:04    阅读次数:201
Cocos2d-x 学习笔记2 - Actions(Basic) - 未完成
//Example://reverse \ clone \ DelayTime \ EaseIn | EaseOutvoid SpriteEase::onEnter(){ EaseSpriteDemo::onEnter(); auto move = MoveBy::create(...
分类:其他好文   时间:2014-10-26 19:40:07    阅读次数:273
字符串算法
字符串逆转void reverse(char* str,int beg,int end){ int times = (end- beg +1)/2; while(times > 0) { char tmp = str[end]; str[end--] =...
分类:编程语言   时间:2014-10-26 16:52:45    阅读次数:114
Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:其他好文   时间:2014-10-26 15:30:30    阅读次数:159
【LeetCode】Add Two Numbers 解题报告
【题目】 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...
分类:其他好文   时间:2014-10-26 14:21:29    阅读次数:243
leetcode palindrome number
1,采用reverse的方法,来比较是不是palindrome2,reverse number的方法!!3,还要记得负数的情况package Leetcode;public class PalindromeNumber {public boolean isPalindrome(int x) { .....
分类:其他好文   时间:2014-10-26 08:00:01    阅读次数:208
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".click to show clarification.Cl...
分类:其他好文   时间:2014-10-25 21:29:50    阅读次数:236
c++ list reverse_iterator
#pragma warning(disable:4786)#include #include using namespace std ;typedef set SET_INT;int main() { SET_INT s1; SET_INT::reverse_iterator i; cout ...
分类:编程语言   时间:2014-10-25 17:12:28    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!