上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 33 下一页
摘要: Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window. For example, https://discuss.leetcod 阅读全文
posted @ 2016-07-21 12:42 Hygeia 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or a list -- w 阅读全文
posted @ 2016-07-19 13:36 Hygeia 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Implement a simple twitter. Support the following method: 阅读全文
posted @ 2016-07-07 02:59 Hygeia 阅读(363) 评论(0) 推荐(0) 编辑
摘要: Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character '.'. You may assume that there will be 阅读全文
posted @ 2016-07-06 23:00 Hygeia 阅读(194) 评论(0) 推荐(0) 编辑
摘要: java中的数据类型,可分为两类: 1.基本数据类型,也称原始数据类型。byte,short,char,int,long,float,double,boolean 他们之间的比较,应用双等号(==),比较的是他们的值。 2.复合数据类型(类) 当他们用(==)进行比较的时候,比较的是他们在内存中的存 阅读全文
posted @ 2016-06-29 04:35 Hygeia 阅读(440) 评论(0) 推荐(0) 编辑
摘要: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each hou 阅读全文
posted @ 2016-06-13 02:59 Hygeia 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: The key is n--. The minimum in 26-bit number 阅读全文
posted @ 2016-05-09 07:01 Hygeia 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may assum 阅读全文
posted @ 2016-05-08 10:24 Hygeia 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT. Subscribe to see which companies asked 阅读全文
posted @ 2016-05-08 09:29 Hygeia 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Implement regular expression matching with support for '.' and '*'. 题目: 正则表达式的匹配,'.'能匹配任何一个字符,'*'之前必须有一个字符,两个结合起来表示之前那个字符出现0到无穷次。 解法: 一定要注意'*'必须结合前面的字 阅读全文
posted @ 2016-05-08 08:42 Hygeia 阅读(239) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 33 下一页