1 private static SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 2 3 /** 4 * 获取单元格的值 5 * 6 * @param cell 7 * @return 8 */ 9... ...
分类:
移动开发 时间:
2017-01-14 17:23:39
阅读次数:
386
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int maxn=505; 8 int b[maxn],dp[maxn][maxn],sum[maxn]; 9 10 int DP(int m,i... ...
分类:
其他好文 时间:
2017-01-14 17:17:22
阅读次数:
132
Problem Description Have you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encirc... ...
分类:
其他好文 时间:
2017-01-14 16:03:16
阅读次数:
160
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that the ...
分类:
其他好文 时间:
2017-01-14 15:47:50
阅读次数:
139
箭头函数:Arrow Function 1:在ES6里面新增了箭头函数:x => x * x 相当于function (x) {return x * x;} 2:箭头函数相当于匿名函数,并且简化了函数定义。箭头函数有两种格式,一种像上面的,只包含一个表达式,连{ ... }和return都省略掉了。 ...
分类:
其他好文 时间:
2017-01-14 15:46:55
阅读次数:
180
<script language="javascript">//大多数函数都包含一个return语句,return导致函数停止运行,并返回它的表达式给它的调用者,//如果return语句没有一个与之相关的表达式,则它返回undefined值,//如果函数没有return语句,那它就只执行函数体内的每 ...
分类:
其他好文 时间:
2017-01-14 14:38:11
阅读次数:
160
def f1(a): if a == 3: pass else: return a*a li = [1,2,3,4] for i in f 1,li): print(i) def f1(a): if a == 3: pass else: return a*a li = [1,2,3,4] # for ...
分类:
其他好文 时间:
2017-01-14 13:54:12
阅读次数:
194
Given a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, ... ...
分类:
编程语言 时间:
2017-01-14 12:53:22
阅读次数:
158
/** * 倒计时 * * @param endTime 截止的时间戳 * * @return 返回的剩余时间 */ - (NSString*)remainingTimeMethodAction:(long long)endTime { //得到当前时间 NSDate *nowData = [NSD ...
分类:
移动开发 时间:
2017-01-14 12:49:27
阅读次数:
194
最近写了一个calendar程序,遇到了很多问题,下面我列出一些个人认为很有意思,也值得思考的问题,供大家参考。 注:每一个问题我给出的方法也许不是最好的方法,若有更好的方法,希望大牛来补充完善,谢谢! 问题一:给定一个日期,如何获取该月的总天数。 方法一:hack技巧 思路: 变量date表示的是 ...
分类:
其他好文 时间:
2017-01-14 07:27:43
阅读次数:
120