码迷,mamicode.com
首页 >  
搜索关键字:reverse    ( 5099个结果
PAT1015. Reversible Primes
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re...
分类:其他好文   时间:2015-02-21 09:42:17    阅读次数:195
HDU-1266 Reverse Number
题目链接:点我点我点我 其实这题没啥难度,简单的字符串处理,开学考java练练手而已 只需要注意0 负数 还有 末尾有0的数字就好 另外,书写风格还是太差了。 代码如下: import java.util.Arrays; import java.util.Scanner; public class Main { public ...
分类:其他好文   时间:2015-02-20 18:38:51    阅读次数:111
leetcode 91. 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-02-20 09:40:34    阅读次数:140
LeetcodeOJ: Evaluate Reverse Polish Notation Stack
1 #define ADDITION '+' 2 #define SUBSTRACTION '-' 3 #define MULTIPLICATION '*' 4 #define DIVISION '/' 5 6 7 class Solution { 8 public: 9 se...
分类:其他好文   时间:2015-02-18 14:03:44    阅读次数:149
LeetCode Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is...
分类:其他好文   时间:2015-02-16 22:12:33    阅读次数:157
leetcode_25_Reverse Nodes in k-Group
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 Reverse Nodes in k-Group  Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple...
分类:其他好文   时间:2015-02-16 11:45:12    阅读次数:120
Leetcode 2 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 ...
分类:其他好文   时间:2015-02-15 12:06:11    阅读次数:140
Leetcode 7 Reverse Integer
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321题目解析:你要是敢用string解你就输了!!一位一位运算吧骚年, 没啥好解释的, 注意overflow和负数情况就行~ 1 ...
分类:其他好文   时间:2015-02-15 12:01:46    阅读次数:104
leetcode_92_Reverse Linked List II
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 Reverse Linked List II  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, ret...
分类:其他好文   时间:2015-02-15 10:49:55    阅读次数:163
leetcode_2_Add Two Numbers
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 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 dig...
分类:其他好文   时间:2015-02-14 17:35:31    阅读次数:201
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!