[leetcode]?https://leetcode.com/problems/shortest-word-distance/ For example, Assume that words =?["practice", "makes", "perfect", "coding", "makes"]. Given?word1?=?“coding”,?word2?=?“p...
分类:
编程语言 时间:
2015-08-18 23:00:35
阅读次数:
755
Description
Sometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party where there are
23 people including you. What is...
分类:
其他好文 时间:
2015-08-18 22:50:12
阅读次数:
194
DescriptionSometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party whe...
分类:
其他好文 时间:
2015-08-18 18:51:11
阅读次数:
100
https://leetcode.com/problems/single-number-iii/初次看到这题时,就想到用异或,但只能找出这两个数异或的结果,不能找出这两个数。最后我用快排过了,然后去看了看人家的思路。看来还是得仔细分析其中的隐藏信息啊。比如:从这两个数异或后的结果值可以看出,从低位开...
分类:
编程语言 时间:
2015-08-18 13:39:32
阅读次数:
119
1、题目名称 Department Highest Salary(部门内最高工资) 2、题目地址 https://leetcode.com/problems/rising-temperature 3、题目内容 表Employee包括四列:Id、Name、Salary、DepartmentId +----+-------+--...
分类:
其他好文 时间:
2015-08-17 23:52:50
阅读次数:
335
//https://leetcode.com/problems/number-of-digit-one/Given an integer n, count the total number of digit 1 appearing in all non-negative integers less ...
分类:
其他好文 时间:
2015-08-17 23:24:33
阅读次数:
136
I've been searching for the answer daylong, and finally had the problems solved. I am going to write down what I've done to complete them. Hopefully t...
分类:
系统相关 时间:
2015-08-17 11:52:09
阅读次数:
484
一、问题描述 新建了一个项目,workspace默认jdk编译版本是1.7的,新建项目使用的是jdk1.5的版本,肯定会报@override错误。这个时候,修改项目的compilor即可。 这时候,你发现项目依然报错,看控制台Problems中报错的信息:Java compiler level .....
分类:
编程语言 时间:
2015-08-17 11:50:41
阅读次数:
178
为一个简单的字符串转换提供了一种基于图深度优先遍历的方法,是一种新的思路。ZigZag Conversion,原题链接:https://leetcode.com/problems/zigzag-conversion/...
分类:
其他好文 时间:
2015-08-17 10:13:00
阅读次数:
239
1、题目名称 Rising Temperature(上浮的温度) 2、题目地址 https://leetcode.com/problems/rising-temperature 3、题目内容 给出一组每日的气温数据,返回当日气温高于昨日气温的日期。 例如,Weather表中的数据...
分类:
其他好文 时间:
2015-08-17 08:51:06
阅读次数:
293