码迷,mamicode.com
首页 >  
搜索关键字:actionbar up    ( 8653个结果
accumulate
accumulate?就是sum up a range of elements。呵呵。这个挺简单的。以下是这个算法的简单介绍:Syntax: #include //呵呵,使用这个算法这个头文件是必需要包含进来滴!TYPE accumulate( input_iterator start, input...
分类:其他好文   时间:2014-10-13 13:50:29    阅读次数:171
Android ---------- Android Bar Bug 总结
1 如何设置 ActionBar的Tab 的颜色? // 设置actionBar的颜色 Drawable draw = new ColorDrawable(Color.GREEN); actionBar.setBackgroundDrawable(draw);  draw = new ColorDrawable(Color.GREEN); // set Tab color...
分类:移动开发   时间:2014-10-13 10:37:51    阅读次数:265
[leetcode] path sum @ Python [recursion]
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 the path equals the given sum.Fo...
分类:编程语言   时间:2014-10-13 03:11:58    阅读次数:257
Successfully installed matplotlib
Installing /usr/local/lib/python2.7/dist-packages/matplotlib-1.4.0-py2.7-nspkg.pthSuccessfully installed matplotlibCleaning up...import matplotlib.py....
分类:其他好文   时间:2014-10-13 02:42:28    阅读次数:232
leetcode - Remove Duplicates from Sorted Array II
Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? For example, Given sorted array A = [1,1,1,2,2,3], Your function should return length = 5, and A is now [1,1,2,...
分类:其他好文   时间:2014-10-12 19:42:38    阅读次数:141
leetcode - Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a function to determine if a given target is in the...
分类:其他好文   时间:2014-10-12 16:06:48    阅读次数:185
Android --------------------ActionBar 与 ViewPager 和 ActionTab 切换 的源码实现
参考网址: 点击打开链接 源码实现: package com.example.actionbardemo2; import android.app.ActionBar; import android.app.ActionBar.Tab; import android.graphics.Color; import android.graphics.drawable.ColorDraw...
分类:移动开发   时间:2014-10-12 13:45:58    阅读次数:226
hdu 3954 Level up(线段树)
题目链接:hdu 3954 Level up 题目大意:N个英雄,M个等级,初始等级为1,给定每个等级需要的经验值,Q次操作,操作分两种,W l r x:表示l~r之间的英雄每个人杀了x个怪物;Q l r:表示询问l~r之间经验值最大的英雄经验值为多少。每轮杀怪,每只怪物的经验和当前等级成正比。 解题思路:线段树维护,每个节点维护最大值,区间内还需要杀多少怪就能升级的最小值,如果这个最...
分类:其他好文   时间:2014-10-12 11:37:57    阅读次数:168
Android开源库集锦
一、兼容类库ActionBarSherlock: Action Bar是Android 3.0后才开始支持的,ActionBarSherlock是让Action Bar功能支持2.X后的所有平台,而且他会自动的判断是调用原生Action Bar还是使用扩展ActionBar。在我的小熊词典里有用到这...
分类:移动开发   时间:2014-10-12 10:59:47    阅读次数:232
HDU 1432 Lining Up(几何)
http://acm.hdu.edu.cn/showproblem.php?pid=1432题目大意: 2维平面上给定n个点,求一条直线能够穿过点数最多是多少。解题思路: 因为题目给定的n(1~700),所以枚举,时间复杂度是O(n^3),不会超时。枚举两个点,然后判断剩下的点是否在这条直线。A.....
分类:其他好文   时间:2014-10-12 06:40:47    阅读次数:153
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!