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 阅读:
115
下标用 _(下划线)
希腊字母等特殊字符用 \加拼音 如
α \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 阅读:
124
python数据结构之 列表和元组
序列:序列是一种数据结构,它包含的元素都进行了编号(从0开始)。典型的序列包括列表、字符串和元组。其中,列表是可变的(可以进行修改),而元组和字符串是不可变的(一旦创建了就是固定的)。序列中包含6种内建的序列,包括列表、元组、字符串、Unicode字符串、buffer对象、xrange对象。
列表的声明:
mylist = []
2....
分类:
编程语言 时间:
2015-03-29 13:40:49
收藏:
0 评论:
0 赞:
0 阅读:
282
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 阅读:
185
回文串匹配——POJ 1159...
分类:
其他 时间:
2015-03-29 13:40:29
收藏:
0 评论:
0 赞:
0 阅读:
234
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 阅读:
259
今天研究了一下MySQL的分页查询,记录并分享如下:
方式1:
select * from table order by id limit m, n;
该语句的意思为,查询m+n条记录,去掉前m条,返回后n条记录。无疑该查询能够实现分页功能,但是如果m的值越大,查询的性能会越低(越后面的页数,查询性能越低),因为MySQ...
分类:
数据库技术 时间:
2015-03-29 13:39:59
收藏:
0 评论:
0 赞:
0 阅读:
210
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 阅读:
465
在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 阅读:
142
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 阅读:
158
Web测试工具是非常必要的响应网页设计过程的一部分
1、网页设计测试工具的使用,你会检查网站错误,很容易找到的。
2、当你看到一个网站,您将使用web设计测试工具来检查你的网站如何反应不同的屏幕分辨率和浏览器大小。
3、响应web测试工具允许你的网站显示图片和内容在不同的设备上,提供良好的用户体验。...
分类:
Web开发 时间:
2015-03-29 13:39:19
收藏:
0 评论:
0 赞:
0 阅读:
247
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 阅读:
156
1.安装ubuntu系统
2.安装jdk环境
3.配置编译环境
4.解决编译过程中遇到的问题
5.编译成功
问题解决总结:
资源版本
开始用的ubuntu 14.10 遇到一个大问题搞了两天没弄好,建议不要选择14.10
问题是 build/core/prebuilt.mk:143:*** recipe commences befor...
分类:
移动平台 时间:
2015-03-29 13:38:49
收藏:
0 评论:
0 赞:
0 阅读:
292
这是一款非常实用的jQuery表单输入文字计数插件。该插件可以设置某个输入框或textarea可输入的最大文字数,当用户输入文字的时候,插件会将字数倒计数显示,提示用户还可以输入多少个文字,并且显示的数字随着数字的减少会越来越清晰。
效果演示:http://www.htmleaf.com/Demo/201503281587.html
下载地址:http://www.htmleaf.com/...
分类:
Web开发 时间:
2015-03-29 13:38:39
收藏:
0 评论:
0 赞:
0 阅读:
274
e-calendar是一款jQuery简单带备忘录功能的日历插件。通过该jQuery日历插件你可以记录或设置某天某个时刻发生的事情,具有工作备忘录的功能。通过简单的参数设置你就可以定制该日历插件的外观。
效果演示:http://www.htmleaf.com/Demo/201503281589.html
下载地址:http://www.htmleaf.com/jQuery/Calend...
分类:
Web开发 时间:
2015-03-29 13:38:29
收藏:
0 评论:
0 赞:
0 阅读:
248
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
题目链接: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 阅读:
184
九连环...
分类:
其他 时间:
2015-03-29 13:37:59
收藏:
0 评论:
0 赞:
0 阅读:
185
PHP开发框架是web开发时最有用的工具,因为它们是耗时的PHP web应用程序的构建和维护。
PHP开发框架有一些有用的特性,可以帮助我们开发web应用程序很容易和更舒适。
这些PHP开发框架减少我们的精力和时间,删除重复的代码,代之以非常简单的代码可以使用轻松没有任何苦难。
我收集了所有这些PHP开发框架下面列出的,真正有用的搜索。初学者或web专家,任何人都可以自由使用这些PHP开发框架。...
分类:
Web开发 时间:
2015-03-29 13:37:49
收藏:
0 评论:
0 赞:
0 阅读:
195
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 阅读:
159