码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
LeetCode 7 Reverse Integer(C,C++,Java,Python)
Problem: Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Have you thought about this? Here are some good questions to ask before coding. Bonus ...
分类:编程语言   时间:2015-05-07 10:31:44    阅读次数:165
java基础入门-对象的浅克隆与深克隆
这里面涉及到两个类,一个是person类,一个是测试类test 首先我们说到的是浅克隆,对某个对象实施Clone时对其是一无所知的,它仅仅是简单地执行域对域的copy,如果是基本数据类型(int,float,char等)到没什么问题,基本遇上如string,Integer等不可变对象的时候也没有什么问题,但是如果遇上了date这个可变对象,或者是自己定义的可变对象,他只是简单的复制一些引...
分类:编程语言   时间:2015-05-07 10:30:36    阅读次数:137
POJ 1426 Find The Multiple (广搜)
Find The Multiple Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 20235   Accepted: 8203   Special Judge Description Given a positive integer n, write a pr...
分类:其他好文   时间:2015-05-07 08:53:38    阅读次数:132
Android 之Java基础---一个列表框引发的血案暨java装箱拆箱的实际应用
为了提高代码的封装性及可读性,我把原来手懒搞的一些AsyncTask的继承内部类决定都单独拉到一个文件夹中,但这一拉,出事情了!      我的应用业务是,有一个min_question_id(int )来记录目前读取到的服务器端数据,原来是内部类的时候,用的好好的,这把它单独剥离出来,每次拉取数据却是从头拉取了! 好了,先上原来的代码! public class getQuestionLi...
分类:移动开发   时间:2015-05-07 08:50:02    阅读次数:166
UVA1213 Sum of Different Primes(素数打表+dp)
UVA - 1213 Sum of Different Primes Time Limit: 3000MS   Memory Limit: Unknown   64bit IO Format: %lld & %llu Submit Status Description A positive integer may be ex...
分类:其他好文   时间:2015-05-07 06:30:45    阅读次数:168
Java反射基础
import java.io.InputStream;import java.util.List;public class Person { public Integer id = 1; private String name = "default"; private static...
分类:编程语言   时间:2015-05-07 06:23:19    阅读次数:119
程序调试中出现的Bug与解决方法
错误信息: Incompatible integer to pointer conversion assigning to 'MessageType *' from int 原因:创建属性时将整型的枚举类型实例变量(基本类型)创建成了id类型的(多加了*)错误信息: 在使用类中,可能找不到某个方法/...
分类:其他好文   时间:2015-05-07 00:32:53    阅读次数:131
Timus 1303 Minimal Coverage DP或贪心
1303. Minimal CoverageGiven set of line segments [Li, Ri] with integer coordinates of their end points. Your task is to find the minimal s...
分类:其他好文   时间:2015-05-07 00:29:02    阅读次数:134
【LeetCode】Excel Sheet Column Title
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->...
分类:其他好文   时间:2015-05-07 00:27:12    阅读次数:104
Integer to Roman ——解题报告
【题目】     Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999.     分析:     首先,我们需要知道罗马数字的表示方法,可参考链接:http://blog.csdn.net/ljiabin/article...
分类:其他好文   时间:2015-05-06 23:06:43    阅读次数:156
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!