码迷,mamicode.com
首页 >  
搜索关键字:return array    ( 86705个结果
【LeetCode】Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他好文   时间:2014-05-05 10:05:58    阅读次数:300
LeetCode OJ - Binary Tree Level Order Traversal 1 && 2
BFS以及它的扩展,我发现栈是个很好用的数据结构,特别是对于顺序需要颠倒的时候!!!这里有个重要的信息:可以用null来标识一个level的结束!!!下面是AC代码: 1 /** 2 * Given a binary tree, return the bottom-up level ord...
分类:其他好文   时间:2014-05-05 09:46:06    阅读次数:402
LeetCode: plusOne 题解
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:其他好文   时间:2014-05-04 19:46:18    阅读次数:372
6898
$\bf命题1:$设$A,B \in {M_n}\left( F\right)$且矩阵$A$各特征值互异,若$AB=BA$,则$(1)$$A,B$可同时相似对角化$(2)$$A,B$有公共的特征向量$(3)$存在唯一的次数不超过$n-1$的多项式$f\left( x \right) \in F\le...
分类:其他好文   时间:2014-05-04 19:33:32    阅读次数:454
8
$\bf命题:$设$A \in {M_{m \times n}}\left( F \right),B \in {M_{n \times m}}\left( F \right),m \ge n,\lambda \ne 0$,则\[{\rm{ }}\left| {\lambda {E_m} - AB} ...
分类:其他好文   时间:2014-05-04 19:33:10    阅读次数:348
9855
$\bf命题1:$设$\int_a^{ + \infty } {f\left( x \right)dx} $收敛,若$\lim \limits_{x \to \begin{array}{*{20}{c}} {{\rm{ + }}\infty } \end{array}} f\left( x \rig...
分类:其他好文   时间:2014-05-04 19:22:03    阅读次数:1000
项目中js的工具类
js工具类的功能有: 1、去掉字符串前后空格 2、清空select 3、验证手机号 4、字符串转换int型数字 5、获取checkbox的选中的值 6、去掉左边的空白 7、去掉邮编的空白 源码如下: /** * 去掉字符串前后空格 * * @param str * @returns */ function trim(str){ return str.re...
分类:Web程序   时间:2014-05-04 18:50:51    阅读次数:420
NYOJ 633 幂
#include #include int main() { double k,m; int T; scanf("%d",&T); while(T--) { scanf("%lf%lf",&k,&m); int a=pow(10,log10(m)/k); while(pow(a+1,k)<=m) ++a; printf("%d\n",a); } return 0; }...
分类:其他好文   时间:2014-05-04 18:44:58    阅读次数:296
托管c++ (CLI) String^ 到 std::string 的相互转化
#include "stdafx.h" #include #include #include using namespace msclr::interop; using namespace System; int main(array ^args) { // 为了可以打印wstring到控制台 std::wcout.imbue(std::locale("chs")); // 声明...
分类:编程语言   时间:2014-05-04 18:30:58    阅读次数:418
枚举功能类
enum.php/** *本类主要是实现枚举的功能 *@paramunknown_type$base_class *@paramunknown_type$args *@paramunknown_type$codeArgs */ functionenum($base_class,array$args,array$codeArgs){ $class_parts=preg_split(‘/\s+/‘,$base_class); $base_class_name=array_shift($cl..
分类:其他好文   时间:2014-05-04 17:14:55    阅读次数:279
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!