码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
Leetcode-Missing Ranges
Given a sorted integer array where the range of elements are [lower, upper] inclusive, return its missing ranges.For example, given [0, 1, 3, 50, 75],...
分类:其他好文   时间:2014-12-13 06:07:01    阅读次数:223
leetcode------Reverse Integer
标题:Reverse Integer正确率:34.8%难度简单Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321Have you thought about this?Here...
分类:其他好文   时间:2014-12-12 23:33:08    阅读次数:214
leetcode------String to Integer (atoi)
标题:String to Integer (atoi)通过率:13.8难度:简单Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a...
分类:其他好文   时间:2014-12-12 23:29:08    阅读次数:237
android控件开发之progress
android控件开发之progress 本博文主要讲述的是android开发中的progress进度条的使用方法,代码如下: MainActivity.java: package com.example.progress; import android.os.Bundle; import android.R.integer; import android.ap...
分类:移动开发   时间:2014-12-12 19:11:38    阅读次数:164
JAVA随笔—JDK1.5的自动装箱与拆箱
今天偶然间发现项目里Integer类型的变量用“==”进行比较的,但是却一直没出现问题。所以就上网查了查,发现这里面涉及到JDK1.5的新特性。1.Java中的数据类型,可分为两类: a.基本数据类型,也称原始数据类型。short,char,int,long,float,double,bool...
分类:编程语言   时间:2014-12-12 18:57:00    阅读次数:146
Roman to Integer
Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999 罗马数字计数方法: 基本字符 I V X L C D M 相应的阿拉...
分类:其他好文   时间:2014-12-12 16:40:50    阅读次数:188
UVA 12672 Eleven(DP)
12672 - ElevenTime limit: 5.000 secondsIn this problem, we refer to the digits of a positive integer as the sequence of digits required to writeit in ...
分类:其他好文   时间:2014-12-12 14:36:30    阅读次数:184
输出和相等的两堆数据
importjava.util.*; /** *给定一个数据集合,把这些数据分成和相等的两堆,输出所有可能的结果。 */ publicclassFindTwoSetsWithSameSum{ //当前Stack中所有数据的和 privateintsumInStack=0; privateStack<Integer>stack=newStack<Integer>(); //数据降序排列(ja..
分类:其他好文   时间:2014-12-12 01:24:53    阅读次数:196
Ruby基础数据类型
#数字分为证书Integer,浮点数Float(对应与其他语言中的double),和复数Complex#整数又分为Fixnum和Bignum,Fixnum和Bignum会互相转换,这些都是ruby自动管理的操作。a=123_333_3432#加入下划线不会影响数字的值puts aputs 0b000...
分类:其他好文   时间:2014-12-11 18:44:52    阅读次数:184
SGU - 102 - Coprimes (简单数论!)
SGU - 102 Coprimes Time Limit: 250MS   Memory Limit: 4096KB   64bit IO Format: %I64d & %I64u Submit Status Description For given integer N (1N104) find amount of p...
分类:其他好文   时间:2014-12-11 17:31:12    阅读次数:113
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!