Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,Return [1,3,3,1]. 分析 二项式展开式的系数 不加(long long)提交会出错。 ...
分类:
其他好文 时间:
2016-09-12 00:25:55
阅读次数:
122
Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5,Return ...
分类:
其他好文 时间:
2016-09-12 00:18:46
阅读次数:
320
Description: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part ...
分类:
其他好文 时间:
2016-09-11 22:43:02
阅读次数:
150
// 使用原生js 封装ajax // 兼容xhr对象 function createXHR(){ if(typeof XMLHttpRequest != "undefined"){ // 非IE6浏览器 return new XMLHttpRequest(); }else if(typeof Ac ...
分类:
Web程序 时间:
2016-09-11 22:41:45
阅读次数:
403
function suffix(file_name){ var result =/\.[^\.]+/.exec(file_name); return result; } ...
分类:
Web程序 时间:
2016-09-11 22:41:09
阅读次数:
150
知识点: 1.开头#include<stdio.h>(编译预处理命令) 2.int main(主函数) 3.所写的内容在{}编写 4.printf后加上(“”)所写的内容在引号里写,千万别忘记 ; ; ; ,("\n")可换行 5 return 0; 作为结束语 遇到的问题及解决方法: 1.incl ...
分类:
其他好文 时间:
2016-09-11 20:23:17
阅读次数:
189
知识点总结: 1-1至1-3和1-7:编写文本要在代码最前面加#include<stdio.h>; 1-4至1-6和1-8:注意换行要在printf("")的引号内加\n且{}内每行代码后都要加英文的分号 总体上:程序最后都要加上return 0; 遇到的问题: 暂无问题,八道题都对了。但还是得注意 ...
分类:
其他好文 时间:
2016-09-11 20:05:51
阅读次数:
136
'\r'是回车,'\n'是换行,前者使光标到行首,后者使光标下移一格。通常用的Enter是两个加起来。下面转一篇文章。 回车和换行 今天,我总算搞清楚“回车”(carriage return)和“换行”(line feed)这两个概念的来历和区别了。 在计算机还没有出现之前,有一种叫做电传打字机(T ...
分类:
其他好文 时间:
2016-09-11 18:39:54
阅读次数:
144
扩展jQuery对象本身。用来在jQuery命名空间上增加新函数。查看‘jQuery.fn.extend‘获取更多添加插件的信息。描述:在jQuery命名空间上增加两个函数。jQuery代码:jQuery.extend({min:function(a,b){returna<b?a:b;},max:function(a,b){returna>b?a:b;}});结果:jQuery.min(2,..
分类:
Web程序 时间:
2016-09-11 15:40:18
阅读次数:
163
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo ...
分类:
其他好文 时间:
2016-09-11 14:19:34
阅读次数:
99