很久没刷leetcode了 The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x ...
分类:
其他好文 时间:
2017-10-22 11:11:17
阅读次数:
123
There is an integer array which has the following features: The numbers in adjacent positions are different. A[0] < A[1] && A[A.length - 2] > A[A.leng ...
分类:
其他好文 时间:
2017-09-23 10:35:58
阅读次数:
165
题目链接:http://codeforces.com/problemset/problem/124/A Petr stands in line of n people, but he doesn't know exactly which position he occupies. He can sa ...
分类:
其他好文 时间:
2017-09-04 22:48:35
阅读次数:
433
1078. Hashing (25)The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of t ...
分类:
其他好文 时间:
2017-09-03 09:54:09
阅读次数:
207
传送门 Description The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Now your job is to ...
分类:
其他好文 时间:
2017-08-20 18:27:04
阅读次数:
124
You are given n points on the straight line — the positions (x-coordinates) of the cities and m points on the same line — the positions (x-coordinates ...
分类:
Web程序 时间:
2017-08-09 15:42:15
阅读次数:
248
There are two popular keyboard layouts in Berland, they differ only in letters positions. All the other keys are the same. In Berland they use alphabe ...
分类:
其他好文 时间:
2017-08-08 19:38:37
阅读次数:
220
The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul ...
分类:
其他好文 时间:
2017-08-08 00:40:04
阅读次数:
145
The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul ...
分类:
其他好文 时间:
2017-07-27 13:37:42
阅读次数:
135
Farmer John has built a new long barn, with N (2 <= N <= 100,000) stalls. The stalls are located along a straight line at positions x1,...,xN (0 <= xi ...
分类:
其他好文 时间:
2017-07-26 17:45:33
阅读次数:
99