5. SQL 语言的分类 * 5.1. 数据定义语言 数据定义语言DDL( Data Definition Language ) , 是SQL语言集中负责数据结构定义不数据库对 象定义的语言 , 主要有create、alter、drop 和truncate 四种常用语 句。 ...
分类:
数据库 时间:
2014-11-04 12:37:10
阅读次数:
223
/**
* Definition for singly-linked list with a random pointer.
* struct RandomListNode {
* int label;
* RandomListNode *next, *random;
* RandomListNode(int x) : label(x), next(NULL), ...
分类:
其他好文 时间:
2014-11-04 11:11:48
阅读次数:
216
一定存在连续的k个数,使得他们的和能被n整除。设a[i]为前缀和a[1]%n ,a[2]%n,...,a[n]%n的值的范围#include#include#include#include#includeusing namespace std;typedef long long LL;int m.....
分类:
其他好文 时间:
2014-11-04 09:10:18
阅读次数:
141
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 1 /** 2 * Definition for singly-linked ....
分类:
其他好文 时间:
2014-11-03 23:53:07
阅读次数:
185
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is.
...
分类:
其他好文 时间:
2014-11-02 09:27:14
阅读次数:
276
ListView自身带了单选、多选模式,可通过listview.setChoiceMode来设置:
listview.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);//开启多选模式
listview.setChoiceMode(ListView.CHOICE_MODE_SINGLE);//开启单选模式
listview.setChoiceMod...
分类:
其他好文 时间:
2014-11-01 21:50:49
阅读次数:
407
通道:http://acm.hdu.edu.cn/showproblem.php?pid=4474题意:给出n和m个数位,求一个数X,这个数是n的最小倍数且他的每一位都不含有m个数位中的任意一个。思路:反过来想,其实就是有非M的元素组成一个数,这个数是N的倍数。如果存在解,那么他的第一位便是非M组合...
分类:
其他好文 时间:
2014-11-01 21:49:52
阅读次数:
235
-!1. Greedy vs. DP:http://blog.csdn.net/yelbosh/article/details/7649717. Multiple choices or not:Greedy has only 1 optimal last choice; DP picks the ....
分类:
其他好文 时间:
2014-11-01 06:11:19
阅读次数:
217
1.关于Arrays记得binarySearch方法返回的int 类型的数值的含义。 If the array contains multiple elements with the specified value, there is no guarantee which one will be f...
分类:
编程语言 时间:
2014-10-31 18:45:03
阅读次数:
285
Find The Multiple
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 18527
Accepted: 7490
Special Judge
Description
Given a positive integer n, write a prog...
分类:
其他好文 时间:
2014-10-30 15:21:23
阅读次数:
245