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-08-03 22:27:56
阅读次数:
141
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-08-03 22:19:33
阅读次数:
113
CREATE OR REPLACE PROCEDURE BATCH_DELETE( P_TABLENAME IN VARCHAR2, P_CONDITION IN VARCHAR2, P_RESULT OUT NUMBER)ASBEGIN EXECUTE IMMEDIATE 'DELETE FROM...
分类:
其他好文 时间:
2015-08-03 22:19:33
阅读次数:
122
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 32-bit in...
分类:
其他好文 时间:
2015-08-03 22:16:35
阅读次数:
144
For a given sorted array (ascending order) and a target number,
find the first index of this number in O(log n) time
complexity.
If the target number does not exist in the array, return -1.
...
分类:
其他好文 时间:
2015-08-03 19:08:48
阅读次数:
151
表版本和闪回功能 用户可能会经常多次创建和删除同一个表,如: CREATE TABLE TEST (COL1 NUMBER); INSERT INTO TEST VALUES (1); commit; DROP TABLE TEST; CREATE TABLE TEST (COL1 NU...
分类:
数据库 时间:
2015-08-03 18:46:10
阅读次数:
229
题目连接:http://poj.org/problem?id=3370DescriptionEvery year there is the same problem at Halloween: Each neighbour is only willing to give a certain total number of sweets on that day, no matter how many...
分类:
其他好文 时间:
2015-08-03 16:57:11
阅读次数:
92
TypeScript全纪录基本类型:Boolean: var bool:boolean = true;Number: var num:number = 0;String: var str:string = "yukin";Array: var arr:Array = [1,2,3];Enum: va...
分类:
其他好文 时间:
2015-08-03 16:18:55
阅读次数:
87
1. AWS EC2中安装需要的注意事项
2. grok有哪些pattern?
3. 如何丢失掉不需要的日志?
4. 为什么索引的值不能做sum/average,为什么我的字段不是Number类型而是String?
5. 怎么制作visualization?...
分类:
其他好文 时间:
2015-08-03 14:41:02
阅读次数:
326