码迷,mamicode.com
首页 >  
搜索关键字:reverse intger    ( 5102个结果
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: ["2", "1", ...
分类:其他好文   时间:2014-07-10 19:39:53    阅读次数:146
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". java代码: {CSDN:CODE:422957}...
分类:其他好文   时间:2014-07-10 17:26:26    阅读次数:136
CTCI 2.5
You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, such that the Ts d...
分类:其他好文   时间:2014-07-09 15:35:19    阅读次数:176
CTCI 2.7
Implement a function to check if a linked list is a palindrome.Reverse the second half of the list and then compare it with the first half./* Assume t...
分类:其他好文   时间:2014-07-09 14:25:04    阅读次数:176
[leetcode] Reverse Words in a String
Given an input string, reverse the string word by word.
分类:其他好文   时间:2014-07-08 22:41:34    阅读次数:187
[leetcode] Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
分类:其他好文   时间:2014-07-08 22:28:14    阅读次数:176
翻转整数 Reverse digits of a number
两种方法翻转一个整数,顺序翻转和递归翻转这里没考虑overflow的情况递归的作用是使得反向处理,即从递归栈的最低端开始处理,通过画图可得。如果是rec(num/10):123451234123121         package recursion; public class Reverse_digits_of_a_number { public static void main(Str...
分类:其他好文   时间:2014-07-08 18:34:14    阅读次数:208
【剑指offer】Q16:翻转链表
def reverse(head): if head == None or head.next == None: return head psuhead = ListNode(-1) while head: nexthead = head.next head.next = psuhead.next psuhead.next = head head = nexthead ...
分类:其他好文   时间:2014-07-08 15:27:58    阅读次数:183
Cracking the Coding Interview Q2.5
You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, such that the 1’s ...
分类:其他好文   时间:2014-07-08 13:34:40    阅读次数:195
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-07-08 10:26:31    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!