1.O(nlogk)海量数据 1 import java.util.TreeSet; 2 3
public class T030 { 4 public static void main(String[] args){ 5 int[] data =
{4,5,1,6,2,7,...
分类:
编程语言 时间:
2014-05-08 18:07:12
阅读次数:
422
注:本文是由网上大神分享的解决方案汇集而成方法一:重写ListView、GridView:重写ListView: 1 public class
MyListView extends ListView { 2 3 public MyListView(Context context) { 4 ...
分类:
移动开发 时间:
2014-05-08 17:57:50
阅读次数:
409
题目链接附上代码: 1 #include 2 #include 3 #include 4 using
namespace std; 5 6 class Solution { 7 public: 8 vector twoSum(vector
&numbers, int target) ...
分类:
其他好文 时间:
2014-05-08 17:50:11
阅读次数:
253
//压缩后转字节字符 public String bitmaptoString(Bitmap
bitmap) { // 将Bitmap转换成字符串 String string = null; ByteArrayOutputStream b...
分类:
其他好文 时间:
2014-05-08 17:48:43
阅读次数:
267
sharepoint学习笔记汇总
http://blog.csdn.net/qq873113580/article/details/20390149
protected void Button1_Click(object sender, EventArgs e)
{
using (SPSite site = new SPSite("http:...
分类:
其他好文 时间:
2014-05-08 17:13:44
阅读次数:
254
题目链接:点击打开链接
题意:
给定一个字符串str 求字符串str的
循环节个数为 1-len 个的
最长子串长度
思路:套用kmp的性质
#include
#include
#include
using namespace std;
#define n 1300
void getnext(char str[n],int next[n]){
int m=strlen(str);...
分类:
其他好文 时间:
2014-05-08 17:12:53
阅读次数:
330
private void treeView1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if(e.Button==MouseButtons.Right)
{
TreeNode tn=treeView1.GetNodeAt(e.X,e.Y);
if(tn!=null)treeView1.SelectedNode...
分类:
其他好文 时间:
2014-05-08 16:24:44
阅读次数:
308
-(void)createImages
{
// Load the alpha image, which is just the same Ship.png image used in the clipping demo
NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"Ship.png" ofType:n...
分类:
移动开发 时间:
2014-05-08 16:17:52
阅读次数:
401
1、import java.io.*;//写进文档,然后又在显示器显示出来。public class
fileinputstream{public static void main(String[] args) throws IOException
{DataOutputStream out = n...
分类:
编程语言 时间:
2014-05-08 15:40:06
阅读次数:
376
1 import java.util.Stack; 2 3 public class T007 { 4
public static void main(String[] args) { 5 Queue q = new Queue(); 6 q.stack1...
分类:
编程语言 时间:
2014-05-08 15:32:24
阅读次数:
356