SELECT* FROM table_a a where a.id NOT IN (SELECT b.id FROM table_b b);先将两个数据表的编码统一,如果table_a的编码为utf8_general_ci,那么将这个表的编码修改下执行以下语句alert table_a CONVER...
分类:
其他好文 时间:
2014-08-28 02:04:08
阅读次数:
246
题目链接Devendra loves the XOR operation very much which is denoted by∧sign in most of the programming languages. He has a listAofNnumbers and he wants to...
分类:
其他好文 时间:
2014-08-27 21:53:08
阅读次数:
316
题目大意:
在n个数中选取k个数,是他们的按位与最小。
思路分析:
开始往dp想,但是这道题是不满足子问题的。
当前的值最小,但是丢掉了和后面的1错开的最多的状态。
暴搜的剪枝:
1.与后面所有的树相与都比ans小,剪掉,因为越与越小。
2.先将所有的数排序,先取小的。
3.ans可以不断更新,不需要达到k的时候更新,原因和1相同。
#include
#incl...
分类:
其他好文 时间:
2014-08-27 16:33:38
阅读次数:
158
1 package com.twoslow.cha6; 2 3 import java.util.HashMap; 4 import java.util.Map; 5 6 public enum Operation { 7 8 PLUS("+") { 9 @Overr...
分类:
其他好文 时间:
2014-08-27 12:54:27
阅读次数:
246
svn提交遇到恶心的问题,可能是因为上次cleanup中断后,进入死循环了。 错误如下: 解决方法:清空svn的队列 1.下载sqlite3.exe 2.找到你项目的.svn文件,查看是否存在wc.db 3.将sqlite3.exe放到.svn的同级目录 4.启动cmd执行sqlite3 .svn/...
分类:
其他好文 时间:
2014-08-27 12:28:57
阅读次数:
184
C#在foreach循环中修改字典等集合出错:System.InvalidOperationException: Collection was modified; enumeration operation may not execute.这是因为在foreach中不允许修改集合,可通过如下方式修改...
分类:
其他好文 时间:
2014-08-26 17:11:46
阅读次数:
489
原题戳我Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You ha...
分类:
其他好文 时间:
2014-08-26 00:14:25
阅读次数:
334
Best Time to Buy and Sell StockSay you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to compl...
分类:
其他好文 时间:
2014-08-25 16:52:04
阅读次数:
238
AFHTTPRequestOperation *op = [[AFHTTPRequestOperation alloc] initWithRequest:request];
[op setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
NSLog(@"上传完成");
} failure:^(AFHTTPRequestOperation *operation, N...
分类:
Web程序 时间:
2014-08-25 13:28:24
阅读次数:
240
In concurrent programming, an operation (or set of operations) is atomic, linearizable, indivisible or uninterruptible if
it appears to the rest of the system to occur instantaneously. Atomicity is ...
分类:
其他好文 时间:
2014-08-25 11:52:54
阅读次数:
331