1 /// 2 /// 获得目标服务器所有数据库名 3 /// 4 /// 5 /// 6 /// 7
public void getDataBaseNameList...
分类:
数据库 时间:
2014-05-08 18:42:04
阅读次数:
344
android 端public String UploadHeadImg(Bitmap
bitmap,String fileName ) { String[] arg={"BtyeString","FileName"}; String[]
val={bitmaptoString(bitmap)...
分类:
移动开发 时间:
2014-05-08 18:35:13
阅读次数:
357
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
C#二进制字节数组操作函数 截取字节数组SubByte ///
/// 截取字节数组
///
/// 要截取的字节数组
/// 开始截取位置的索引
/// 要截取的字节长度
/// 截取后的字节数组
public byte[] SubByte(byte[] srcByt...
分类:
其他好文 时间:
2014-05-08 11:15:21
阅读次数:
246
好,二叉搜索树粉末登场,有关他的问题有这么几个,给你一个n,怎样求所有的n个节点的二叉搜索树个数?能不能把所有的这些二叉搜索树打印出来?
这道题倒不用考虑这么多,直接转就行了,我用的思想是分治,每次找到一半的位置,分离出中间节点,作为新子树的根节点,然后递归构造前半部分和后半部分。
class Solution {
public:
TreeNode *sortedListToBST(L...
分类:
其他好文 时间:
2014-05-08 11:07:14
阅读次数:
266
public boolean checkMatchFNOrFI(String[] strArray,String value){
boolean flag = false;
for(String s : strArray){
if(!s.equals("")){
String temp = s.replaceAll("\\?", "\\\\w").replaceAll("\\...
分类:
数据库 时间:
2014-05-08 10:46:16
阅读次数:
380
Java String 字符串的HashCode值
public int hashCode()
Returns a hash code for this string. The hash code for a String object is computed as
s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]
using int ari...
分类:
编程语言 时间:
2014-05-08 10:44:53
阅读次数:
533