题目 Businesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the University of Wa...
分类:
其他好文 时间:
2014-08-21 15:22:24
阅读次数:
237
《编程之美》里的一个题目:能否快速找出一个数组中的两个数字,让这两个数字之和等于一个给定的值,假设这个数组中肯定存在至少一组符合要求的解。 LeetCode的题目: Given an array of integers, find two numbers such that they add up ...
分类:
其他好文 时间:
2014-08-21 14:45:44
阅读次数:
186
Problem 30
Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits:
1634 = 14 + 64 + 34 + 44
8208 = 84 + 24 + 04 + 84
9474 = 94 + 44 + 74 + 44...
分类:
其他好文 时间:
2014-08-21 09:48:04
阅读次数:
251
Sending SMS And Dialing Numbers without User ConsentSending SMS does not require context or user interaction. A simple call does the job, as shown in ...
分类:
其他好文 时间:
2014-08-21 09:44:43
阅读次数:
170
class IntroToLINQ{ static void Main() { // The Three Parts of a LINQ Query: // 1. Data source. int[] numbers = n...
分类:
其他好文 时间:
2014-08-21 01:28:53
阅读次数:
207
A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message con...
分类:
其他好文 时间:
2014-08-20 20:56:53
阅读次数:
231
Description
Problem E: How many 0's?
A Benedict monk No. 16 writes down the decimal representations of all natural numbers between and including
m and n, m ≤ n. How many 0's will he write down?
...
分类:
其他好文 时间:
2014-08-20 19:42:02
阅读次数:
224
A squarenumber is an integer number whose square root is also an integer. For example1, 4, 81 are some square numbers. Given two numbers a and b you will have tofind out how many square numbers are th...
分类:
其他好文 时间:
2014-08-20 16:28:22
阅读次数:
151
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possibl...
分类:
其他好文 时间:
2014-08-20 14:06:22
阅读次数:
163
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:
其他好文 时间:
2014-08-20 11:57:22
阅读次数:
198