码迷,mamicode.com
首页 >  
搜索关键字:reverse integer    ( 19410个结果
OpenERP对象字段定义的详解
OpenERP对象支持的字段类型有,基础类型:char, text, boolean, integer, float, date, time, datetime, binary;复杂类型:selection, function, related;关系类型:one2one, one2many, man...
分类:其他好文   时间:2014-07-10 11:13:07    阅读次数:339
[Leetcode][Tree][Binary Tree Level Order Traversal ]
树的层次遍历,比较简单,3个题的做法完全一样,只是在特定的地方对结果进行reverse。1、Binary Tree Level Order Traversal/** * Definition for binary tree * struct TreeNode { * int val; * ...
分类:其他好文   时间:2014-07-07 16:39:56    阅读次数:194
Problem Reverse Worlds in a String
Problem Description:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Solution: ...
分类:其他好文   时间:2014-07-07 16:39:19    阅读次数:163
Object类
1,概念 它是java中最顶层的类,所有对象(包括数组)都可以使用该类中的方法. 2,类中的几个比较重要的方法 2.1 String toString():返回该对象的字符串表示,在Object中的该方法它默认的是返回 getClass().getName() +'@' +Integer.toHex...
分类:其他好文   时间:2014-07-03 11:35:28    阅读次数:161
Problem Evaluate Reverse Polish Notation
Problem Description:Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integ...
分类:其他好文   时间:2014-06-30 14:32:54    阅读次数:151
LeetCode——Roman to Integer
Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 给定一个罗马数字,把它转换成一个整数。 把罗马数字字符串转换成字符数组先,如下表,每个数字仅对应一个字符,而且字符不一样。故可从头开始取值进行对应。 The R...
分类:其他好文   时间:2014-06-30 09:52:40    阅读次数:251
LeetCode——Integer to Roman
Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 给定一个整数,把它转换成罗马数字。 输入可以保证在1到3999之间。 下图是转换规则。 1 2 3 4 ...
分类:其他好文   时间:2014-06-30 09:28:05    阅读次数:308
N-Queens
题目 The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all distinct solutions to the n-que...
分类:其他好文   时间:2014-06-30 00:34:18    阅读次数:188
HDOJ 1047 Integer Inquiry
JAVA大数.... Integer Inquiry Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 12042    Accepted Submission(s): 3037 Problem Descript...
分类:其他好文   时间:2014-06-30 00:18:48    阅读次数:235
POJ 2478 Farey Sequence
Description The Farey Sequence Fn for any integer n with n >= 2 is the set of irreducible rational numbers a/b with 0 F2 = {1/2}  F3 = {1/3, 1/2, 2/3}  F4 = {1/4, 1/3, 1/2, 2/3, 3/4}  F5 = {1/...
分类:其他好文   时间:2014-06-29 20:35:09    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!