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.
Note:
You may ...
分类:
其他好文 时间:
2015-01-06 15:41:54
阅读次数:
189
自己在做一个ajax的小例子,发现一个诡异的问题,点击页面button,调用ajax发送请求,后台方法可以成功调用,但是前台的ajax回调函数却没有执行,无论success、error、complete都没走,于是我连续快速点击按钮,发现偶尔可以成功调用success回调函数,更诡异的是,页面居然会刷新。。。。。。
经过多次对比测试,终于发现问题原因:button的type属性,将typ...
分类:
其他好文 时间:
2015-01-05 21:58:40
阅读次数:
137
1.先做一次冷全备3.SQL> insert into t1 values(1,'cyf1');1 row created.SQL> commit ;Commit complete.3.SQL> select to_char(sysdate ,'yyyy-mm-dd hh24:mi:ss') fro...
分类:
其他好文 时间:
2015-01-05 16:22:59
阅读次数:
122
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.
Note:
You may ...
分类:
其他好文 时间:
2015-01-04 17:14:20
阅读次数:
130
1、直接在flash中,给元件设置属性,绑定类;1、_loader = new Loader(); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE,completeDataHandler); _loader.con...
分类:
其他好文 时间:
2015-01-04 08:37:52
阅读次数:
191
今天尝试在线更新ADT(22到23)的时候,遇到了这么个问题,从错误提示中初步看起来是存在引用的冲突:估计大家在把22升级到23的时候都会遇上这个问题,新旧版冲突,感觉像是ADT自己的bug。其实就是当前要安装的插件与已安装的插件存在了冲突。解决办法:卸载冲突的几个插件,可能很多人不知道如何卸载已安...
分类:
系统相关 时间:
2014-12-31 16:09:42
阅读次数:
245
问题描述:
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.
Note:
Y...
分类:
其他好文 时间:
2014-12-30 22:08:07
阅读次数:
178
这种情况很常见,就是循环发送ajax请求么。
非跨域请求这么写没有问题,success会被调用100次,但是当dataType : "jsonp"时,success可能只会执行70次80次,剩下的请求没有成功也没有失败,用complete也抓不到。
浏览器会报错找不到callback,或无任何提示。有两个地方会引起这种问题...
分类:
Web程序 时间:
2014-12-30 19:08:40
阅读次数:
135
代码提示 KEYMAP->Main menu->Code->Complete Code->Basic 设置快捷键ALT+Z 原是ctrl+空格(SPACE)
KEYMAP->Main menu->Code->Generate 设置快捷键ALT+Insert 原是AlT+Shift+S Alt+回车 导入包,
自动修正 Ctrl+N 查找类
...
分类:
其他好文 时间:
2014-12-30 15:20:26
阅读次数:
189
原文网址:http://www.cnblogs.com/zhongcq/p/3630047.html使用Vim编写程序少不了使用自动补全插件,在Linux下有没有类似VS中的Visual Assist X这么方便快捷的补全插件呢?以前用的是neocomplcache+code_complete+om...
分类:
系统相关 时间:
2014-12-30 11:26:04
阅读次数:
292