题目一:根据电话上字母和数字的对应关系,用一个有意义的单词来表述一个电话号码,如用computer表示26678837
题目二:反过来,给定一个电话号码,是否可以用一个单词来表示呢?怎样表示最快呢?显然不是所有的电话号码都可以对应到单词上去
首先来看看leetcode上一个类似的题目:
Letter Combinations of a Phone Number
G...
分类:
其他好文 时间:
2014-08-15 16:11:50
阅读次数:
257
Problem D: XYZZYADVENT: /ad?vent/, n. The prototypical computer adventure game, first designed by Will Crowther on the PDP-10 in the mid-1970s as an a...
分类:
其他好文 时间:
2014-08-15 14:34:08
阅读次数:
194
BicoloringIn 1976 the ``Four Color Map Theorem" was proven with the assistance of a computer. This theorem states that every map can be colored using....
分类:
其他好文 时间:
2014-08-15 14:23:23
阅读次数:
195
There were hundreds of or thousands of programming languages created since the invention of computer. All these languages have the same target which i...
分类:
编程语言 时间:
2014-08-15 14:08:18
阅读次数:
263
Most computer programs do the same thing every time they execute, given the same inputs, so they are said to be deterministic. Deterministic is usuall...
分类:
其他好文 时间:
2014-08-14 19:49:49
阅读次数:
170
昨日刚刚修好的WSUSserver夜里再度响起同步失败的报警c:\programfiles\updateservices\logfiles\softwardistribution.log2014-08-1403:22:29.436UTCInfow3wp.3ServerImplementation.UpdateCacheDatabasechangeoccured;checkifweneedtoupdatecache.2014-08-1403:28:00.636UTCWar..
分类:
其他好文 时间:
2014-08-14 17:01:39
阅读次数:
550
Think leather bag to keep your computer safe and organized.Bed computer phone holster is an affordable way to quickly improve your own or your family,...
分类:
其他好文 时间:
2014-08-14 13:43:18
阅读次数:
252
UVA 12096 - The SetStack Computer
题目链接
题意:几个操作,push是在栈顶加入一个空集,dup是复制栈顶集合,在放入栈顶,union是把头两个取并集放回,int是头两个取交集放回,add是取头两个,把第一个当成一个集合加入第二个,每次操作输出栈顶集合的里面的个数
思路:用set,stack模拟,然后利用map去hash一个集合,模拟即可
...
分类:
其他好文 时间:
2014-08-13 22:30:07
阅读次数:
370
Network AttackNicola regularly inspects the local networks for security issues. He uses a smart and aggressive program which takes control of computer...
分类:
Web程序 时间:
2014-08-13 10:18:05
阅读次数:
247
Description
A number of schools are connected to a computer network. Agreements have been developed among those schools: each school maintains a list of schools to which it distributes software (the ...
分类:
Web程序 时间:
2014-08-12 19:01:14
阅读次数:
471