0 8 28-31 * * [ `date -d tomorrow +%e` -eq 1 ]
&& do-something我觉得能想到这种方法的,都是经验丰富的人。程序员们,想当然的就会就写出很复杂的代码。
分类:
其他好文 时间:
2014-05-26 20:39:23
阅读次数:
252
#建立一个222.rb文件并且输入字符file =
File.open("222.rb","w+")file.puts
"123\nwadwa\n12124124\ndwdw"file.close#输出222.rb的内容File.open("222.rb","r+") do
|file|while ...
分类:
其他好文 时间:
2014-05-26 16:07:50
阅读次数:
293
Running monkeyrunnerYou can either run monkeyrunner
programs from a file, or enter monkeyrunner statements in an interactive
session. You do both by i...
分类:
其他好文 时间:
2014-05-26 15:07:58
阅读次数:
263
Tough core Java interview questions and
answersWhat is tough core java interview question ? Why do people look for tough
Java questions before going f...
分类:
编程语言 时间:
2014-05-26 12:41:29
阅读次数:
371
#includeusing namespace std;int main(){int
n,m,i,j,x[100],a[100],p;cout>n>>m;for(i=1;in){j=(x[i-1]+1)%n;}else{j=x[i-1]+1;}p=1;do{if(a[j]!=0){j++;if(j>...
分类:
其他好文 时间:
2014-05-23 02:47:17
阅读次数:
211
Determine whether an integer is a palindrome.
Do this without extra space.if use recursive, like check the first dig and last
dig, then remove them, c...
分类:
其他好文 时间:
2014-05-23 02:45:15
阅读次数:
230
题目说:Try to do this in one pass
只用一遍遍历的话,p1先走n节点,p2再走,等到p1到达链表尾的时候p2正好在倒数第n+1个上面鸟
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode...
分类:
其他好文 时间:
2014-05-23 01:52:29
阅读次数:
331
H. Happy Reversal
64-bit integer IO format: %lld
Java class name: Main
Elfness is studying in an operation "NOT".
For a binary number A, if we do operation "NOT A", after that, all digit...
分类:
移动开发 时间:
2014-05-23 00:43:49
阅读次数:
430
Given a sorted array, remove the duplicates in
place such that each element appear onlyonceand return the new length.Do not
allocate extra space for a...
分类:
其他好文 时间:
2014-05-21 20:00:51
阅读次数:
296
Reverse a linked list from positionmton. Do it
in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m=
2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2014-05-21 19:08:08
阅读次数:
195