- 博客(4)
- 收藏
- 关注
原创 Best Time to Buy and Sell Stock III(JAVA)-动态规划
题目: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete at most two transactions.
2015-05-28 17:34:54 438
原创 Best Time to Buy and Sell Stock(JAVA)--动态规划
题目: 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
2015-05-27 18:03:31 618
原创 Best Time to Buy and Sell Stock II(JAVA)--贪心算法
题目内容: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, bu
2015-05-27 17:43:46 304
转载 Object类中的方法介绍
Object类中的方法介绍 原文地址:http://www.blogjava.net/jiafang83/archive/2008/12/05/244510.html 类Object是类层次结构的根类,每一个类都使用Object作为超类,所有对象(包括数组)都实现这个类的方法。jdk1.5中,描述了该类中的11个方法 1.getClass public final Clas
2015-05-27 11:09:34 320
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人