码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
【LeetCode】Contains Duplicate II
Contains Duplicate II问题描述Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in the array such that nums[i] = nums[j] and the difference between i...
分类:其他好文   时间:2015-07-16 11:50:13    阅读次数:158
基本类型与字符串以及进制之间转换
1、其它数据类型的转换成字符串型通过查阅类库中各个类提供的成员方法可以看到,几乎java.lang.Object类派生的所有类提供了toString()方法,即将该类转换为字符串。例如:Characrer,Integer,Float,Double,Boolean,Short等类的toString()...
分类:其他好文   时间:2015-07-16 11:20:10    阅读次数:127
leetcode_228题——Summary Ranges
Summary RangesTotal Accepted:9278Total Submissions:48419My SubmissionsQuestionSolutionGiven a sorted integer array without duplicates, return the summ...
分类:其他好文   时间:2015-07-16 11:08:11    阅读次数:140
Leetcode -- Day 8
Form today on, I changed to Math module question.Question 1String to Integer (atoi)Implementatoito convert a string to an integer.Remember one thing h...
分类:其他好文   时间:2015-07-16 00:41:38    阅读次数:113
[LeetCode][Java] Spiral Matrix II
题目: Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the following matrix: [ [ 1, 2, 3 ], [ 8, 9...
分类:编程语言   时间:2015-07-15 22:54:53    阅读次数:189
poj1160 Post Office
Description There is a straight highway with villages alongside the highway. The highway is represented as an integer axis, and the position of each village is identified with a single integer coor...
分类:其他好文   时间:2015-07-15 22:54:39    阅读次数:167
08 循环
for for 列表用法 for variable1 in {1..5} do done 不带列表 for varibale in "$@" do done 可以看到, 不带列表的, 与带列表的区别不大 类C风格 for (( integer=1; integer= 10)) then break ...
分类:其他好文   时间:2015-07-15 22:40:43    阅读次数:204
python强大的内置函数help()
测试int>>> help(int)Help on class int in module builtins:class int(object)| int(x=0) -> integer| int(x, base=10) -> integer| | Convert a number or strin...
分类:编程语言   时间:2015-07-15 22:38:50    阅读次数:118
LeetCode#231 Power of Two
Problem Definition: Given an integer, write a function to determine if it is a power of two.Solution:class Solution: # @param {integer} n # @re...
分类:其他好文   时间:2015-07-15 22:27:51    阅读次数:90
Number of Digit One
Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Given n = 13,Return 6...
分类:其他好文   时间:2015-07-15 20:52:00    阅读次数:115
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!