码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
[Leetcode]-Merge Sorted Array
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note: You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold additional...
分类:其他好文   时间:2015-07-06 12:21:02    阅读次数:117
mybatis 传参为 Integer 时 ,Mapper 文件 中判断 条件 问题。
b.work_permit_card_cert is not null and b.work_permit_card_cert!=1 and b.delete_flag =0 u.user_...
分类:移动开发   时间:2015-07-06 12:07:35    阅读次数:129
221 Maximum Square
这道题有两个思路, 一是沿用085的maximum rectangle的思路, 稍作改进即可, 代码如下, 这个方法运行192msclass Solution: # @param {character[][]} matrix # @return {integer} def maxi...
分类:其他好文   时间:2015-07-06 08:51:45    阅读次数:136
[LeetCode] Power of Two 判断2的次方数
Given an integer, write a function to determine if it is a power of two.Hint:Could you solve it in O(1) time and using O(1) space?这道题让我们判断一个数是否为2的次方数,...
分类:其他好文   时间:2015-07-06 06:38:44    阅读次数:116
AngularJS自定义表单验证器
Size (integer 0 - 10): This is not valid integer! ...
分类:Web程序   时间:2015-07-05 23:47:26    阅读次数:205
Ruby on Rails Tutorial 第二章 之 微博资源
1、微博模型如下图所示:2、创建微博资源,命令如下:$ rails generate scaffold Micropost content:text user_id:integer #生成微博资源$ bundle exec rake db:migrate #执行迁移,更新数据库,使用新建的数据模型....
分类:其他好文   时间:2015-07-05 22:29:18    阅读次数:138
MyBatis查询传一个参数时报错:There is no getter for property named 'sleevetype' in 'class java.lang.Integer
用MyBatis进行查询,传入参数只有一个时(非Map)如int,报错There is no getter for property named 'sleevetype' in 'class java.lang.Integer原因在于测试条件写法有误, excl...
分类:编程语言   时间:2015-07-05 22:25:02    阅读次数:211
Leetcode 13 Roman to Integer
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.如果左边字母的值小于右边,则减去左边的,防止溢出,最后一个值一定需要加上去def rom...
分类:其他好文   时间:2015-07-05 21:03:40    阅读次数:94
leetcode: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"].Credits:S...
分类:其他好文   时间:2015-07-05 18:15:24    阅读次数:191
【leetcode】Happy Number
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:移动开发   时间:2015-07-05 14:53:40    阅读次数:127
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!