码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
SpringMVC 类型转换错误自定义返回
在SpringMVC捕获异常只需要实现接口org.springframework.web.servlet.HandlerExceptionResolver,即可自定义返回异常,如:属性转换异常 @RequestMapping("/test") @ResponseBody public String str(Integer age) throws Exception { retur...
分类:编程语言   时间:2015-04-25 16:42:01    阅读次数:162
Java [leetcode 9] Palindrome Number
问题描述:Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are t...
分类:编程语言   时间:2015-04-25 14:54:15    阅读次数:167
Java [leetcode 8] String to Integer (atoi)
问题描述:Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see be...
分类:编程语言   时间:2015-04-25 14:51:50    阅读次数:148
Java [leetcode 7] Reverse Integer
问题描述:Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321Have you thought about this?Here are some good question...
分类:编程语言   时间:2015-04-25 14:50:25    阅读次数:111
POJ 1284 Primitive Roots (原根)
Primitive Roots Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 3219   Accepted: 1858 Description We say that integer x, 0 i mod p) | 1 <= i <= p-1 } is equa...
分类:其他好文   时间:2015-04-25 13:46:16    阅读次数:119
Merge Sorted Array -- leetcode
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from ...
分类:其他好文   时间:2015-04-25 12:17:30    阅读次数:121
POJ 2407 Relatives(欧拉函数)
Relatives Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 11801   Accepted: 5780 Description Given n, a positive integer, how many positive integers less tha...
分类:其他好文   时间:2015-04-25 12:13:58    阅读次数:109
mysql 数据类型
数值类型MySQL支持所有标准SQL数值数据类型,包括严格数值数据类型(INTEGER、SMALLINT、DECIMAL和NUMERIC),以及近似数值数据类型(FLOAT、REAL和DOUBLE PRECISION),除了这些还支持TINYINT、MEDIUMINT和BIGINT。这些类型的占用字...
分类:数据库   时间:2015-04-25 10:36:38    阅读次数:159
[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, replace the number by the sum of the square...
分类:移动开发   时间:2015-04-25 00:21:22    阅读次数:153
poj1716 Integer Intervals 贪心
#include #include #include using namespace std; struct node { int left,right; }c[10005]; bool cmp(node x,node y)//按照右端点排序 { if(x.right<y.right) return true; if(x.right==y.right&&x.left<y.left) ...
分类:其他好文   时间:2015-04-24 16:26:45    阅读次数:117
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!