一、NumberFormat /**
* Number formatter for integers
*/
public static final NumberFormat FORMAT_INT = NumberFormat.getIntegerInstance(); textView.setText(FORMAT_INT.format(number)); ?...
分类:
移动开发 时间:
2015-04-10 15:46:34
阅读次数:
116
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:
其他好文 时间:
2015-04-10 15:29:31
阅读次数:
161
TO_CHAR(x[[,c2],C3])【功能】将日期或数据转换为char数据类型【参数】x是一个date或number数据类型。c2为格式参数c3为NLS设置参数如果x为日期nlsparm=NLS_DATE_LANGUAGE 控制返回的月份和日份所使用的语言。如果x为数字nlsparm=NLS_N...
分类:
数据库 时间:
2015-04-10 15:13:39
阅读次数:
285
1.SQL TOP 子句TOP子句用于规定要返回的记录的数目。语法:select top number/percent column_name(s) from 表名2.SQL like 操作符like操作符用于where子句中列中的指定模式。模糊查询;语法:select column_name(s)...
分类:
数据库 时间:
2015-04-10 15:00:20
阅读次数:
152
基本函数用法1、top: select top number/percent 列名 from表名2、in:select * from 表名 where 列名 in ('值1','值2'); 有时值为汉字时因编码方式不同数据库会检查不到结果,此时可在值前加N即为:('N值1','N值2');3、be....
分类:
数据库 时间:
2015-04-10 14:56:38
阅读次数:
115
最近想刷一下LeetCode练习一下数据结构算法之类的,先从水题开始吧题目是这样的Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theH...
分类:
其他好文 时间:
2015-04-10 13:11:14
阅读次数:
117
转载:http://www.studyofnet.com/news/292.html一、定义和用法toFixed() 方法可把 Number 四舍五入为指定小数位数的数字。语法NumberObject.toFixed(num)参数描述num必需。规定小数的位数,是 0 ~ 20 之间的值,包括 0 ...
分类:
Web程序 时间:
2015-04-10 12:59:51
阅读次数:
189
【题目】
Given a 2d grid map of '1's (land) and '0's
(water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. Yo...
分类:
其他好文 时间:
2015-04-10 11:29:34
阅读次数:
136
这两个题,都是用bit operation解决的,但是第二个稍微tricky一点。先说第一个,我们利用XOR, 如果一个数字出现两次,那么在每一位上,两两抵消。唯独那个只出现一次的,没有另一半和它抵消了。。所以就剩下了。 1 public int singleNumber(int[] A) ...
分类:
其他好文 时间:
2015-04-10 08:15:03
阅读次数:
108
Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent ...
分类:
编程语言 时间:
2015-04-10 00:59:46
阅读次数:
342