码迷,mamicode.com
首页 >  
搜索关键字:reverse    ( 5099个结果
leetcode 【 Add Two Numbers 】 python 实现
题目: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 sing...
分类:编程语言   时间:2015-01-16 14:37:18    阅读次数:247
(每日算法)LeetCode --- Reverse Linked List II(旋转链表的指定部分)
Reverse Linked List II(旋转链表的指定部分) Leetcode Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->2...
分类:编程语言   时间:2015-01-16 10:04:19    阅读次数:203
[LeetCode#92]Reverse Linked List II
The problem: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...
分类:其他好文   时间:2015-01-16 06:26:58    阅读次数:190
Reverse Integer leetcode
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Here are some good questions to ask before c...
分类:其他好文   时间:2015-01-15 22:06:26    阅读次数:132
[C++]LeetCode: 98 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"...
分类:编程语言   时间:2015-01-15 20:25:10    阅读次数:148
[leetCode][016] 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 ...
分类:其他好文   时间:2015-01-15 20:01:05    阅读次数:148
LeetCode--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. Clarification: What constitutes...
分类:其他好文   时间:2015-01-15 18:26:13    阅读次数:161
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: ["2", "1", ...
分类:其他好文   时间:2015-01-15 13:00:38    阅读次数:156
leetcode7 Reverse Integer
题目要求,输入一个整型数,输出反转后的数。例如:-123,反转后为-321。应该考虑到输入int型的数反转后超过int最大值的情况。 {CSDN:CODE:580055}...
分类:其他好文   时间:2015-01-14 22:57:23    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!