题目:
A message containing letters from A-Z is being encoded to numbers using the following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine the tot...
分类:
编程语言 时间:
2014-12-25 20:35:04
阅读次数:
197
题目:Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which ...
分类:
其他好文 时间:
2014-12-24 17:39:33
阅读次数:
147
如何在EditText中限定输入字符的方式:1.通过设置digits属性限定输入的字符:android:digits="0123456789"2.通过设置inputtype属性选择输入字符类型:android:inputType="number"3.通过设置numberic属性接受数字输入:andr...
分类:
其他好文 时间:
2014-12-24 17:35:39
阅读次数:
119
Problem StatementYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes ...
分类:
其他好文 时间:
2014-12-24 16:08:33
阅读次数:
137
功用截取日期或数字,返回指定的值。语法TRUNC(number,num_digits)Number 需要截尾取整的数字。Num_digits 用于指定取整精度的数字。Num_digits 的默认值为 0。说明函数 TRUNC 和函数 INT 类似,都返回整数。函数 TRUNC 直接去除数字的小数部分...
分类:
其他好文 时间:
2014-12-24 13:21:43
阅读次数:
95
题目
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find th...
分类:
其他好文 时间:
2014-12-23 15:35:28
阅读次数:
167
Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes co...
分类:
其他好文 时间:
2014-12-23 13:40:36
阅读次数:
183
题目摘要:Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321 这道题不算难,主要是要考虑"反转后的值可能越界"这一种情况。(此题起初设计时,未考虑这种情况,因此网上很多旧....
分类:
其他好文 时间:
2014-12-22 12:42:55
阅读次数:
134
http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=19099
给定一些点,求构成三角形最大面积,并且这个三角形不能不能包含其他点(在边上也不行)。
因为数据范围很小,所以直接枚举就好,并且还把面积公式告诉了我们,判断点在三角形内的方法是,这个点与其他顶点的面积之和是否等于这个三角形的面积。
#include
#includ...
分类:
其他好文 时间:
2014-12-19 20:46:02
阅读次数:
208
【题目】
Given a string containing only digits, restore it by returning all possible valid IP address combinations.
For example:
Given "25525511135",
return ["255.255.11.135", "255.255.111.35"...
分类:
其他好文 时间:
2014-12-19 17:26:18
阅读次数:
117