码迷,mamicode.com
首页 >  
搜索关键字:reverse integer    ( 19410个结果
【leetcode系列】String to Integer (atoi)
这个我就直接上代码了,最开始把“abc123“也算作合法的了,后来查了一下atoi的定义,把这种去掉了。 public class Solution { public static int atoi(String inStr) { long result = 0L; /* * 网上查了一下,atoi函数的定义是如果第一个非空格字符存在,是数字或者正负号则开始做类型转换, *...
分类:其他好文   时间:2014-08-06 10:36:31    阅读次数:193
LeetCode "Reverse Nodes in k-Group"
Another list manipulation problem.class Solution {public: ListNode *reverseKGroup(ListNode *head, int k) { if (!head) return head; if...
分类:其他好文   时间:2014-08-06 06:14:10    阅读次数:232
Leetcode--Roman to Integer
Problem Description: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 分析:题目的意思是将罗马数字转化成整数,首先是在网上找到关于罗马数字表示法的规则如下:  1、计数方法:① 罗马数字就...
分类:其他好文   时间:2014-08-05 22:45:10    阅读次数:283
xtu summer individual-4 D - Martian Strings
Martian StringsTime Limit: 2000msMemory Limit: 262144KBThis problem will be judged onCodeForces. Original ID:149E64-bit integer IO format:%I64d Java c...
分类:其他好文   时间:2014-08-05 22:09:40    阅读次数:320
xtu summer individual-4 A - Beautiful IP Addresses
Beautiful IP AddressesTime Limit: 2000msMemory Limit: 262144KBThis problem will be judged onCodeForces. Original ID:292C64-bit integer IO format:%I64d...
分类:其他好文   时间:2014-08-05 19:09:33    阅读次数:340
程序猿的自我修养清单
Data Structures    1. Integer       – find number of 1s       – next largest smaller       – smallest larger number       – determine if is palindrom       – itoa, atoi       – add 2 numbers w/...
分类:其他好文   时间:2014-08-05 15:50:40    阅读次数:408
StrConv 函数的vbUnicode和vbFromUnicode含义及用途
作者:iamlaosong 主要叙说一下StrConv 函数conversion参数最后两个值的含义和用途,并举例说明。 1、语法 StrConv(string, conversion, LCID) StrConv 函数的语法有下面的命名参数: 部分 说明 string 必要参数。要转换的字符串表达式。 conversion 必要参数。Integer。其值的和...
分类:其他好文   时间:2014-08-05 14:13:39    阅读次数:434
xtu read problem training 3 B - Gears
GearsTime Limit: 2000msMemory Limit: 65536KBThis problem will be judged onZJU. Original ID:378964-bit integer IO format:%lld Java class name:MainBob h...
分类:其他好文   时间:2014-08-05 13:50:39    阅读次数:372
java jdk缓存-128~127的Long与Integer
java jdk缓存-128~127的Long与Integer...
分类:编程语言   时间:2014-08-05 11:19:09    阅读次数:206
POJ 1651 Multiplication Puzzle (区间DP)
Description The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points eq...
分类:其他好文   时间:2014-08-05 11:12:25    阅读次数:267
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!