码迷,mamicode.com
首页 >  
搜索关键字:arrays values    ( 12125个结果
ios 给uiview创作遮罩
mask一定是PNG格式的图像,去掉背景 .jpg格式图片没有alpha values遮罩是通过图片透明度的信息实现与颜色无关UIImage*_maskingImage =[UIImage imageNamed:@"mask"];CALayer*_maskingLayer =[CALayer lay...
分类:移动开发   时间:2014-05-20 00:07:25    阅读次数:474
xxxx is not translated in zh-rCN, zh-rTW
1.异常提示:"image_content" is not translated in zh-rCN, zh-rTW2.错误原因:根据报错提示,是说我没有对string文件做国际化翻译操作,但是我报错的项目并没有做国际化,所以并没有values-zh-rCN和values-zh-rTW两个文件夹,最...
分类:其他好文   时间:2014-05-19 22:04:44    阅读次数:317
jvm性能优化及内存分区
jvm性能优化及内存分区2012-09-17 15:51:37分类:JavaSome of the default values for Sun JVMs are listed below.JDK 1.3.1_06 Initial Size Maximum SizeClient JVM 1MB 32...
分类:其他好文   时间:2014-05-18 02:46:12    阅读次数:311
Saving Activity state in Android
You need to override onSaveInstanceState(Bundle savedInstanceState) and write the application state values you want to change to the Bundle parameter ...
分类:移动开发   时间:2014-05-17 14:49:13    阅读次数:292
字符串数组逆序
1 import java.util.Arrays; 2 import java.util.Comparator; 3 4 class ResStrSort{ 5 public static void main(String[] args) { 6 String strs...
分类:其他好文   时间:2014-05-16 05:43:09    阅读次数:260
EditText之边框颜色
EditText的自带属性里没有设置边框颜色的有俩种方式可以达到效果一种是网上比较推崇的用图作背景,另一种则是自绘图作背景的: 首先重新定义一个style。在values文件夹下新建一个style.xml文件: 接下来在drawable里添加my_edittext.xml:内容如下 其中ed...
分类:其他好文   时间:2014-05-16 03:17:01    阅读次数:305
leetcode第一刷_Median of Two Sorted Arrays
这道题是我最初刷的那20多道之一,但一直没有过,被各种各样的情况折磨死了,直到把所有其他的题都写完,回来看大神对这道题是怎么处理的时候,才惊叹算法的奇妙。再次验证了我的想法,如果要处理各种各样的特殊情况,一定是算法本身有问题。 之前看过很多有关在两个排序数组中找中位数的解法,大多根据两个数组长度不同分了很多种情况,各种讨论。下面要介绍的方法并没有直接求中位数,而是把求中位数转换成了求两个数组合并...
分类:其他好文   时间:2014-05-15 12:21:05    阅读次数:273
leetCode-002 Median of Two Sorted Arrays
leetCode-002 Median of Two Sorted Arrays 【题目】 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 O(log (m+n)). 【题意】 有两个有序的数组,找出这两数组整合后的中位数,要求时间复杂度O(nlogn)...
分类:其他好文   时间:2014-05-15 04:42:05    阅读次数:274
LeetCode之Unique Binary Search Trees
Unique Binary Search Trees, Given n, how many structurally unique BST's (binary search trees) that store values 1...n?...
分类:其他好文   时间:2014-05-15 02:32:11    阅读次数:245
LeetCode--Binary Tree Preorder Traversal
Binary Tree Preorder Traversal  Total Accepted: 18022 Total Submissions: 51784My Submissions Given a binary tree, return the preorder traversal of its nodes' values. For example: Given b...
分类:其他好文   时间:2014-05-14 20:43:22    阅读次数:242
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!