码迷,mamicode.com
首页 >  
搜索关键字:reverse intger    ( 5102个结果
LeetCode:Reverse Integer
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return –321 这道题应该不用详细说了。比较简单。唯一的是要注意特殊值0. public class Solution { publ...
分类:其他好文   时间:2014-05-24 01:39:59    阅读次数:170
【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 as a link...
分类:其他好文   时间:2014-05-23 07:43:23    阅读次数:246
PL/SQL 编程(二)
1    For循环     语法:begin             for i in reverse 1..10 loop             insert into users values(i,’奥巴马‘);             end loop;           end;     注意:循环变量 i 是隐含增加的,所以无法看到      2    goto语句...
分类:数据库   时间:2014-05-22 12:12:34    阅读次数:335
UVA - 11610 Reverse Prime
题意:首先定义了一种叫做Reverse Prime的数:是一个7位数,倒置后是一个   然后要把所有的Reverse Prime求出来,排好序。   然后题目有2种操作:   q x :求编号0到编号x的Reverse Prime的质因数个数的和   d x :从表中删掉x(x是一个Reverse Prime) 思路:首先筛选出所有的素数,然后倒置,因为我们的素数都是#include...
分类:其他好文   时间:2014-05-22 09:29:54    阅读次数:274
如何将阿拉伯数字每三位一逗号分隔,如:15000000转化为15,000,000
"15000000".split("").reverse().join("").replace(/(\d{3})/g, "$1,").split("").reverse().join("");"115000000".split("").reverse().join("").replace(/(\d{...
分类:其他好文   时间:2014-05-22 05:04:27    阅读次数:357
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 si...
分类:其他好文   时间:2014-05-19 13:53:32    阅读次数:296
【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-05-19 12:05:23    阅读次数:386
Leetcode 151题 Reverse Words in a String
Leetcode 151题 Reverse Words in a String...
分类:其他好文   时间:2014-05-18 10:51:21    阅读次数:243
LeetCode: Reverse Nodes in k-Group [024]
【题目】 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. You may not alter the values in the nodes, only n...
分类:其他好文   时间:2014-05-18 10:22:34    阅读次数:367
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". Clarification: What constitutes a word? A sequence of non-spa...
分类:其他好文   时间:2014-05-18 04:12:07    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!