/** * Created with IntelliJ IDEA. * User:
li_zhe * Date: 14/05/06 * Time: 12:34 * To change this template use File |
Settings | File Templates. */pack...
分类:
其他好文 时间:
2014-05-16 22:09:34
阅读次数:
431
在开发中,Date与Calendar使用率上是相当高的,如果对它们不太了解,那么,在实际开发中会发生各种状态。如:为什么我获得到的本月的月份不是本月等等。Date篇public
class Dateextends Objectimplements Serializable, Cloneable, C...
分类:
编程语言 时间:
2014-05-16 19:25:47
阅读次数:
416
function getNowDate(){ var d = new Date(); var
vYear = d.getFullYear(); var vMon = d.getMonth() + 1; var vDay = d.getDate();
var h = d.getHours()...
分类:
Web程序 时间:
2014-05-16 07:21:19
阅读次数:
321
制定目标的原则:SMART原则(S=Specific(明确性)、M=Measurable(可衡量性)、A=Attainable(可达成性)、R=Relevant(相关性)、T=Time-bound)(时限性);制定合宜的目标绝对是一种高超的能力
分类:
其他好文 时间:
2014-05-16 06:34:08
阅读次数:
279
Java日期时间使用总结一、Java中的日期概述日期在Java中是一块非常复杂的内容,对于一个日期在不同的语言国别环境中,日期的国际化,日期和时间之间的转换,日期的加减运算,日期的展示格式都是非常复杂的问题。在Java中,操作日期主要涉及到一下几个类:1、java.util.Date
类 Date ...
分类:
编程语言 时间:
2014-05-16 05:58:49
阅读次数:
436
题目: Sort a linked list inO(nlogn) time using
constant space complexity.解题思路: 复杂度为O(n* logn)
的排序算法有:快速排序、堆排序、归并排序。对于链表这种数据结构,使用归并排序比较靠谱。递归代码如下:代码: /...
分类:
其他好文 时间:
2014-05-16 05:49:04
阅读次数:
266
这里先给出一段代码:function a(){ setTimeout(function(){
console.log("setTimeout") },2000); function oneSecond(){ var now = new Date()...
分类:
其他好文 时间:
2014-05-14 09:20:02
阅读次数:
271
原题:
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 th...
分类:
其他好文 时间:
2014-05-13 14:12:41
阅读次数:
342
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie
Best Time to Buy and Sell Stock II
Total Accepted: 13030 Total
Submissions: 36467
Say you have an array for which the ith ...
分类:
其他好文 时间:
2014-05-13 14:08:39
阅读次数:
414
Problem Description
Acmers have been the Earth Protector against the evil enemy for a long time, now it’s your turn to protect our home.
There are 2 * n enemies in the map. Your task is to clear a...
分类:
其他好文 时间:
2014-05-13 11:29:40
阅读次数:
308