码迷,mamicode.com
首页 >  
搜索关键字:reverse integer    ( 19410个结果
所有的排序、查找算法
import javax.mail.Part;   /**  *   顺序查找  *  * @author 曾修建  * @version 创建时间:2014-7-30 下午04:15:10  */ public class SequentialSearch {     public static void main(String[] args) { Integer[] a...
分类:其他好文   时间:2014-08-01 00:07:30    阅读次数:295
switch使用时有哪些注意事项
switch语句用于多分支选择,在使用switch(expr)的时候,expr只能是一个枚举常量(内部也是由整型或字符类型实现)或一个整数表达式,其中整数表达式可以是基本类型int或其对应的包装类Integer,当然也包括不同的长度整型....
分类:其他好文   时间:2014-07-31 23:58:00    阅读次数:709
Leetcode--Add Two Numbers
Problem Description: 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 numbe...
分类:其他好文   时间:2014-07-31 20:47:17    阅读次数:215
【CodeChef】Small factorials(BigInteger笔记)
You are asked to calculate factorials of some small positive integers.InputAn integer t, 1 0){20 int num = Integer.parseInt(bf.readLine())...
分类:其他好文   时间:2014-07-31 20:05:57    阅读次数:165
装箱与拆箱
装箱就是把基础类型封装成一个类。比如把int封装成Integer,这时你就不能把他当成一个数了,而是一个类了,对他的操作就需要用它的方法了。拆箱就是把类转换成基础类型。比如你算个加法什么的是不能用类的,就得把它转换成基本类型,jdk5以后已经可以自动转换了貌似。Integer a=1;//这就是一....
分类:其他好文   时间:2014-07-31 16:04:16    阅读次数:213
Swift中基本类型的转换
最近上手学习了Swift的语言,谙习JS的我感觉非常顺眼,在此记录下我的学习过程吧.因为我对Objective-c接触的不多,所以在oc里头使用的东西目前我可能还有很多不知道他的存在.最近在用swift写了一些小示例app,很多地方都用到了基本类型的转换,但是我发现他居然没有Integer.pars...
分类:其他好文   时间:2014-07-31 12:58:46    阅读次数:178
LeetCode "Reverse Linked List II"
Just corner case..class Solution {public: ListNode *reverseBetween(ListNode *head, int m, int n) { if(m == n) return head; ListNode *...
分类:其他好文   时间:2014-07-31 09:34:05    阅读次数:245
将字符串转换成数字
问题描述: Implement atoi to convert a string to an integer. 解题思路: 对于一个字符串需要注意一下几点: 1、过滤字符串开头的所有空格字符; 2、注意数字字符前面的“+”和“-”字符,从而确定数字的正负号; 3、只处理数字字符,一旦出现非数字字符,立即停止字符串处理,并返回已处理的结果; 4、返回结果时要注意数字越界的问题,不能...
分类:其他好文   时间:2014-07-31 00:03:45    阅读次数:314
HDU2138 随机素数测试 Miller-Rabin算法
题目描述 Give you a lot of positive integers, just to find out how many prime numbers there are.. In each case, there is an integer N representing the num...
分类:其他好文   时间:2014-07-30 23:35:35    阅读次数:300
BNUOJ 1575 Supermarket
SupermarketTime Limit: 2000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:145664-bit integer IO format:%lld Java class name:Mai...
分类:其他好文   时间:2014-07-30 23:19:55    阅读次数:318
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!