JAVA分割文件,把一个ZIP文件通过指定的大小分割,然后合并起来。
分割
package com.zkq.objectstream;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
...
分类:
编程语言 时间:
2014-09-07 21:11:45
阅读次数:
368
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l...
分类:
其他好文 时间:
2014-09-07 10:58:14
阅读次数:
185
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:
其他好文 时间:
2014-09-06 17:16:13
阅读次数:
252
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.思路:不断将相邻的链表两两合并,知道只剩一个链表为止。 1 class Solution { 2 pub...
分类:
其他好文 时间:
2014-09-06 14:51:13
阅读次数:
172
public class Solution { public void merge(int A[], int m, int B[], int n) { int i=m-1, j=n-1, k=m+n-1; while(i>=0 && j>=0) { ...
分类:
其他好文 时间:
2014-09-05 23:41:02
阅读次数:
181
//归入排序是分而治之的思想//Merge过程的时间复杂度为O(n)//T(n)=O(1) n=1//T(n)=2T(n/2)+O(n)//时间复杂度为O(nlogn)//空间复杂度为O(n)void Merge(int A[],int p,int q,int r){ int n1=q-p+1; ....
分类:
其他好文 时间:
2014-09-05 19:47:51
阅读次数:
136
Problem Description:
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
分析:很容易想到的一种解法是将链表中所有的元素保存到数组中,然后每次取中间值进行构造,时间复杂度为O(n),空间复杂度为O(n)。具体...
分类:
其他好文 时间:
2014-09-05 18:14:11
阅读次数:
223
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l...
分类:
其他好文 时间:
2014-09-05 12:37:51
阅读次数:
215
#-*-coding:utf-8-*-
[p_w_upload]
max_size=262144
render_unsafe_content=false
[browser]
color_scale=True
downloadable_paths=/trunk,/branches/*,/tags/*
hide_properties=svk:merge
intermediate_color=
intermediate_point=
newest_color=(255,136,136)
oldest_color..
分类:
其他好文 时间:
2014-09-05 10:11:21
阅读次数:
2915