首页 > 其他
一种加载动画的实现
一种加载动画效果的实现...
分类:其他   时间:2015-03-29 13:41:39    收藏:0  评论:0  赞:0  阅读:244
[LeetCode]Compare Version Numbers
Compare Version Numbers Compare two version numbers version1 and version2. If version1 > version2 return 1, if version1 version2 return -1, otherwise return 0. You may assume that the version...
分类:其他   时间:2015-03-29 13:41:29    收藏:0  评论:0  赞:0  阅读:185
synchronized静态代码块,以及其中的wait,notify和notifyAll
接触Java多线程这么久了,synchronized静态代码块以及其中的wait和notify方法一直没搞懂,网上关于此,不是旁敲侧击,就是晦涩难懂(我理解能力有限),实在无语了。今天把Java的源码导入到了eclipse,从源码中看到了我想要的答案。即本文专注于讲解透彻地讲解synchronized代码块,wait以及notify的使用方法,绝对一针见血,绝不旁敲侧击,没意思。注:本文不会讲什么是...
分类:其他   时间:2015-03-29 13:41:24    收藏:0  评论:0  赞:0  阅读:345
LeetCode Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), des...
分类:其他   时间:2015-03-29 13:41:09    收藏:0  评论:0  赞:0  阅读:116
Matlab 输入特殊字符
下标用 _(下划线)  希腊字母等特殊字符用 \加拼音 如  α \alpha  β \beta  γ \gamma  θ \theta  Θ \Theta  Г \Gamma  δ \delta  Δ \Delta  ξ \xi  Ξ \Xi  η \elta  ε \epsilong  ζ \zeta  μ \miu  υ \nu  τ \tau  λ \l...
分类:其他   时间:2015-03-29 13:40:59    收藏:0  评论:0  赞:0  阅读:126
Matlab diag的用法
X = diag(v,k) 以向量v的元素作为矩阵X的第k条对角线元素,当k=0时,v为X的主对角线;当k>0时,v为上方第k条对角线 几个例子: 当k> v=[1 2 3]; >> x=diag(v,-1) x = 0 0 0 0 1 0 0 0 0 2 0 0 0 0 3 0 v=[1]; x=diag(v,0) x= 1 0 0 0 0...
分类:其他   时间:2015-03-29 13:40:39    收藏:0  评论:0  赞:0  阅读:186
回文串匹配——POJ 1159
回文串匹配——POJ 1159...
分类:其他   时间:2015-03-29 13:40:29    收藏:0  评论:0  赞:0  阅读:235
LeetCode Clone Graph
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.OJ's undirected graph serialization:Nodes are labeled uniquely.We use # as a separator for each node, and...
分类:其他   时间:2015-03-29 13:40:09    收藏:0  评论:0  赞:0  阅读:263
BestCoder Round #35(DZY Loves Balls-暴力dp)
DZY Loves Balls Accepts: 371 Submissions: 988 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) 问题描述 一个盒子里有n  个黑球和m  个白球。现在DZY每次随机从盒子里取走一个球,取了n+m...
分类:其他   时间:2015-03-29 13:39:49    收藏:0  评论:0  赞:0  阅读:468
设置顶部系统栏颜色和actionbar颜色相同
在activity中调用以下方法: /** * Apply KitKat specific translucency. */ private void applyKitKatTranslucency() { // KitKat translucent navigation/status bar. if (Build.VERSI...
分类:其他   时间:2015-03-29 13:39:39    收藏:0  评论:0  赞:0  阅读:144
LeetCode Longest Valid Parentheses
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the longest valid parentheses substring is "()", which ha...
分类:其他   时间:2015-03-29 13:39:29    收藏:0  评论:0  赞:0  阅读:161
BestCoder Round #35(DZY Loves Topological Sorting-堆+贪心)
DZY Loves Topological Sorting Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 323    Accepted Submission(s): 86 Problem Description A...
分类:其他   时间:2015-03-29 13:38:59    收藏:0  评论:0  赞:0  阅读:157
LeetCode First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm should run in O(n) time and uses constant space.思路分析:...
分类:其他   时间:2015-03-29 13:38:19    收藏:0  评论:0  赞:0  阅读:246
[LeetCode 55] Jump Game
题目链接:jump-game /** * Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length ...
分类:其他   时间:2015-03-29 13:38:09    收藏:0  评论:0  赞:0  阅读:188
九连环分析与实现
九连环...
分类:其他   时间:2015-03-29 13:37:59    收藏:0  评论:0  赞:0  阅读:187
文章标题
1、在IntelJ中和Eclipse中稍有不同,在Eclipse中,输入main再按Alt+/即可自动补全main函数,但是在IntellJ中则是输入psvm,选中即可2、在方法体内部有for循环,在IntellJ中是输入fori,然后会有一个提示,选中需要的for循环即可3、System.out.println();在IntellJ中是输入sout...
分类:其他   时间:2015-03-29 13:37:39    收藏:0  评论:0  赞:0  阅读:161
The method assertEquals(Object, Object) is ambiguous for the type Assert解决办法
该错误意思是方法调用存在歧义,先看下面这个例子: assertEquals(10L, (Long)10); 编译器就会报出The method assertEquals(Object, Object) is ambiguous for the type Assert的错误; 10L是long型,而(Long)10是Long型。而assertEquals()是一个重载的方法,其中就有 ass...
分类:其他   时间:2015-03-29 13:37:09    收藏:0  评论:0  赞:0  阅读:483
SVN与TortoiseSVN实战:文件加锁详解
硬广:《SVN与TortoiseSVN实战》系列已经写了八篇,本篇是完结篇,整个系列结合TortoiseSVN对SVN中容易被忽视的部分进行了详解,以技巧性为主。本篇详解使用TortoiseSVN对文件进行加锁和解锁的技巧,其中涉及到了之前介绍的SVN属性知识,关于属性可以翻看《SVN与Tortoi...
分类:其他   时间:2015-03-29 13:36:19    收藏:0  评论:0  赞:0  阅读:258
NSDate,NSCalendar,NSTimer,NSTimeZone
NSDate存储的是世界标准时(UTC),输出时需要根据时区转换为本地时间Dates NSDate类提供了创建date,比较date以及计算两个date之间间隔的功能。Date对象是不可改变的。 如果你要创建date对象并表示当前日期,你可以alloc一个NSDate对象并调用init初...
分类:其他   时间:2015-03-29 13:35:49    收藏:0  评论:0  赞:0  阅读:179
Learning c section 1
#include void main() { puts("hello world"); int x=4; //the %p format will print out the location in hex(base lb) format printf("x lives at %p\n",&x); ...
分类:其他   时间:2015-03-29 13:35:19    收藏:0  评论:0  赞:0  阅读:231
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!