1、bitmap保存到SQLite中数据格式:db.execSQL("Createtableexpress(_idINTEGERPRIMARYKEYAUTOINCREMENT,express_novarchar(100),express_nameTEXT,express_imgBLOB);");2、bitmap变为BlobContentValuesvalues=newContentValues();finalByteArrayOutputStreamos=newByteArrayOu..
分类:
数据库 时间:
2014-09-01 15:57:13
阅读次数:
327
insert:一般只要参数个数和类型没问题,不会插入异常INSERTINTOt_pos_dynamic_map(autoid, lt_termno, lt_merchno)VALUES(SEQ_Pos_dynamic_Map_Autoid.NEXTVAL, lTradeInfo.Ltl_Termno...
分类:
数据库 时间:
2014-09-01 10:25:42
阅读次数:
268
LeetCode: Unique Binary Search TreesGiven n, how many structurally unique BST's (binary search trees) that store values 1...n? For example,Given n = 3...
分类:
其他好文 时间:
2014-08-31 22:41:31
阅读次数:
361
LeetCode: Binary Tree Inorder TraversalGiven a binary tree, return the inorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}...
分类:
其他好文 时间:
2014-08-31 22:38:11
阅读次数:
215
Path Sum
Total Accepted: 20393 Total
Submissions: 66674My Submissions
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along...
分类:
其他好文 时间:
2014-08-31 21:33:41
阅读次数:
284
Binary Tree Preorder TraversalGiven a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ ...
分类:
其他好文 时间:
2014-08-31 18:34:41
阅读次数:
180
Binary Tree Inorder TraversalGiven a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ ...
分类:
其他好文 时间:
2014-08-31 18:27:01
阅读次数:
168
Insert是T-sql中常用语句,Insert INTO table(field1,field2,...) values(value1,value2,...)这种形式的在应用程序开发中必不可少。但我们在开发、测试过程中,经常会遇到需要表复制的情况,如将一个table1的数据的部分字段复制到tab....
分类:
其他好文 时间:
2014-08-31 16:59:41
阅读次数:
151
题目链接:http://poj.org/problem?id=2785思路: 朴素的枚举算法时间复杂度到了O(n^4),肯定会超时,这里我们用到了折半枚举的方法~ 原理就是先算前两个数组的各个元素进行枚举的和,排序后,然后再枚举后面两个数组各个元素的和,是这两块的和为0,而这部操作可以用到二分搜索....
分类:
其他好文 时间:
2014-08-30 11:12:19
阅读次数:
229
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:
其他好文 时间:
2014-08-30 02:22:18
阅读次数:
244