Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 5364
Accepted: 1456
Description
Given a number of distinct decimal digits, you can form one integer by choosing a non-...
分类:
其他好文 时间:
2015-04-22 15:16:23
阅读次数:
143
Discription:Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id. 删除重....
分类:
其他好文 时间:
2015-04-19 22:37:26
阅读次数:
370
Problem
A certain forest consists of N trees, each of which is inhabited by a squirrel.
The boundary of the forest is the convex polygon of smallest area which contains every tree, as if a giant r...
分类:
其他好文 时间:
2015-04-18 19:14:41
阅读次数:
169
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:
其他好文 时间:
2015-04-17 15:17:10
阅读次数:
148
题目SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id.
Id
Email 1
john@example.com
2
bob@example.com
3
john@examp...
分类:
其他好文 时间:
2015-04-17 11:25:03
阅读次数:
100
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Calling next() will return the next smallest number in the BST.Note: next() and has...
分类:
其他好文 时间:
2015-04-16 17:45:41
阅读次数:
151
Problem Description
There is a sequence of integers. Your task is to find the longest subsequence that satisfies the following condition: the difference between the maximum element and the minimum el...
分类:
其他好文 时间:
2015-04-14 21:37:54
阅读次数:
175
暴搜一下就行了,确实也没法优化什么。 不过枚举一半,另一半用next_permutation()函数应该是会快一些的。
#include
#include
#include
#include
#include
#include
using namespace std;
int T,a[20],n,vis[20],tot;
int A[20],B;
void dfs(int cur) {
...
分类:
其他好文 时间:
2015-04-14 16:44:14
阅读次数:
141
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.
Calling next() will return the next smallest number in the BST.
Note: next() and...
分类:
其他好文 时间:
2015-04-14 13:01:30
阅读次数:
148
Q. What's the process and threads and what's the difference between them?A. A process is an executing program. One or more threads run in the context ...
分类:
编程语言 时间:
2015-04-14 00:12:22
阅读次数:
200