码迷,mamicode.com
首页 >  
搜索关键字:ret    ( 30742个结果
3 sum allow number used multi times
class Solution { public: vector > ThreeSum(int a[], int n, int target) { vector > ret; for (int i = 0; i 0 && a[i] == a[i - 1]...
分类:其他好文   时间:2014-11-23 17:22:59    阅读次数:232
mu4e 快捷键组合和操作附件
首先看一下官方文档,里面有所有快捷键http://www.djcbsoftware.nl/code/mu/mu4e/MSGV-Keybindings.html#MSGV-Keybindings然后看一下如何打开附件M-Ret Ret就是Enter键如何保存呢?e 键即可。如何设置保存目录呢?;; save attachment to my desktop (this can also be a f...
分类:其他好文   时间:2014-11-23 13:13:10    阅读次数:150
Interleaving String
# 题目 Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example, Given: s1 = "aabcc", s2 = "dbbca", When s3 = "aadbbcbcac", return true. When s3 = "aadbbbaccc", ret...
分类:其他好文   时间:2014-11-22 23:23:11    阅读次数:404
php jsonp单引号转义
php中jsonp输出时一般用下面的格式:callbackname('json string');如果中间的json string中含有单引号,这个输出就是有问题的,调用方一般是无法处理的,所以我们要对单引号进行转义。如果是用json_encode方式生成可以用下面的方式转义:$ret = json...
分类:Web程序   时间:2014-11-22 17:16:44    阅读次数:183
我的oh my zsh主题
local ret_status="%(?:%{$fg_bold[green]%}? :%{$fg_bold[red]%}? %s)"PROMPT='%(!.%{$fg_bold[blue]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[cyan]%}%(!.%1~....
分类:其他好文   时间:2014-11-22 17:14:34    阅读次数:314
页面指定固定年月日日期
js方法如下:function addDate(ymd,day){ var temp = new Date(ymd); temp = temp.valueOf(); temp = temp + day * 24 * 60 * 60 * 1000; temp = new Date(temp); ret...
分类:其他好文   时间:2014-11-21 18:34:47    阅读次数:173
Pow(x, n)
Implement pow(x,n).C++实现代码:#includeusing namespace std;class Solution{public: double pow(double x, int n) { if(x==0&&n==0) ret...
分类:其他好文   时间:2014-11-21 10:36:20    阅读次数:147
Remove Duplicates from Sorted Array II
Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ret...
分类:其他好文   时间:2014-11-19 14:01:24    阅读次数:134
javascript原型方法
1 function createXMLHttp() { 2 if(window.XMLHttpRequest){ 3 return new XMLHttpRequest(); 4 } else if(window.ActiveXObject){ 5 ret...
分类:编程语言   时间:2014-11-18 23:27:30    阅读次数:363
输入输出挂,手动扩栈。
//#pragma comment(linker, "/STACK:102400000,102400000") c++扩栈/* int __size__ = 256 '9')) c = getchar(); sgn = (c == '-') ? -1 : 1; ret = (c =...
分类:其他好文   时间:2014-11-15 16:44:16    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!