码迷,mamicode.com
首页 >  
搜索关键字:reverse intger    ( 5102个结果
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 ...
分类:其他好文   时间:2014-11-26 01:05:29    阅读次数:166
Add Two Numbers
Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes co...
分类:其他好文   时间:2014-11-25 14:09:53    阅读次数:171
LeeCode-Reverse Integer
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 class Solution { public: int reverse(int x) { int Answer=0; ...
分类:其他好文   时间:2014-11-25 12:45:26    阅读次数:191
LeetCode:Evaluate Reverse Polish Notation
题目描述: Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another expression. Some examples: ...
分类:其他好文   时间:2014-11-25 10:53:22    阅读次数:250
[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 ...
分类:其他好文   时间:2014-11-24 09:50:10    阅读次数:168
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-11-23 23:08:59    阅读次数:332
java字符串的反转
Java中字符串的反转 首推方法: public?void?convertStr(String?str){? ????????//将String?对象转换为可改变的StringBuffer类对象? ????????//然后调用StringBuffer类的reverse()方法实现...
分类:编程语言   时间:2014-11-23 21:47:09    阅读次数:200
Reverse Integer
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 #include int reverse(int x) { long long tmp1=(long long)x; long long tmp2=(long long)x; ...
分类:其他好文   时间:2014-11-23 18:59:33    阅读次数:188
leetcode[92] Reverse Linked List II
这题和Reverse Node in k-Group相关,主要是看如何翻转一个链表。这里是指定区间从第m个到第n个的翻转例如:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL./** * Definition for si...
分类:其他好文   时间:2014-11-23 17:22:49    阅读次数:172
【leetcode】Evaluate Reverse Polish Notation
Evaluate Reverse Polish Notation题目描述:Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -,, /. Each oper...
分类:其他好文   时间:2014-11-23 14:25:38    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!