码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
HDU 1047 Integer Inquiry
Integer InquiryProblem DescriptionOne of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of pow...
分类:其他好文   时间:2015-07-24 20:10:11    阅读次数:97
java中基本类型与装箱基本类型“==”比较出现的几种情况
java中基本类型与装箱基本类型“==”比较出现的几种情况java有一个类型系统有两部分组成,包含基本类型(primitive),例如:int、double等,还有引用类型(reference type),例如:String、List。每个基本类型都有一个对应的引用类型,称为装箱基本类型(boxed promitive)。装箱基本类型中对应于int、double的是Integer、Double。...
分类:编程语言   时间:2015-07-24 18:17:10    阅读次数:125
BNUOJ 34982 Beautiful Garden
Beautiful GardenTime Limit: 15000msCase Time Limit: 8000msMemory Limit: 65536KB64-bit integer IO format:%lld Java class name:MainThere are n trees pla...
分类:其他好文   时间:2015-07-24 17:25:39    阅读次数:98
(LeetCode)反转整数
原题如下: Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Here are some good questions to a...
分类:其他好文   时间:2015-07-24 13:00:00    阅读次数:132
leetCode(50):Summary Ranges
Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"]. 本题我采用的是最直观的算法,但整数转化为字符还有些坎坷。应该还有简单的算法,但目前没有时间去研究了。...
分类:其他好文   时间:2015-07-24 12:56:25    阅读次数:109
PostgreSQL递归查询实现树状结构查询
在Postgresql的使用过程中发现了一个很有意思的功能,就是对于需要类似于树状结构的结果可以使用递归查询实现。比如说我们常用的公司部门这种数据结构,一般我们设计表结构的时候都是类似下面的SQL,其中parent_id为NULL时表示顶级节点,否则表示上级节点ID。CREATE TABLE DEPARTMENT ( ID INTEGER PRIMARY KEY, NAME VARCHAR(32...
分类:数据库   时间:2015-07-24 09:19:16    阅读次数:159
240 Search a 2D Matrix II
240 Search a 2D Matrix II这是个young‘s矩阵,最好的就是O(m+n)的算法了class Solution: # @param {integer[][]} matrix # @param {integer} target # @return {boole...
分类:其他好文   时间:2015-07-24 06:55:12    阅读次数:298
13.Roman to Integer (Map)
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.class Solution {public: int romanToInt(st...
分类:其他好文   时间:2015-07-23 21:32:56    阅读次数:127
[Java]初识AtomicInteger
AtomicInteger,这是java提供的一个原子操作Integer的类,这在我眼里还是一个稀客,可能是不怎么感兴趣,以至于一直当作简单的volatile,这也是我的拙见。其实这家伙还是挺好用的,在常见的场景中,如count++或++count,这在java多线程的使用中是不安全的,而AtomicInteger属于原子操作(线程安全),可以在下面的例子中看出来。 package org.ja...
分类:编程语言   时间:2015-07-23 20:06:01    阅读次数:145
用 OUTLOOK VBA 生成 自定义文件夹 邮件列表
Option ExplicitSub TestFolder()'Dim outlookapp, myitem, myfolder'Dim mailcounts As Integer'''Set outlookapp = CreateObject("outlook.application")' ...
分类:编程语言   时间:2015-07-23 19:40:02    阅读次数:331
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!