码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
leetcode || 53、Maximum Subarray
problem: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [?2,1,?3,4,?1,2,1,?5,4], the contiguous su...
分类:其他好文   时间:2015-03-31 18:00:23    阅读次数:121
google protobuf 使用示例
1 定义.proto接口文件package tutorial;message Person { required string name = 1; required int32 id = 2; //unique ID number for this person optional ...
分类:其他好文   时间:2015-03-31 17:40:49    阅读次数:123
[LeetCode] Valid Number
Valid Number Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note: It is intended for the pro...
分类:其他好文   时间:2015-03-31 14:42:56    阅读次数:129
Distinct Subsequences
Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed from the original string by deleting some (can be none)...
分类:其他好文   时间:2015-03-31 14:42:13    阅读次数:138
js中的5 种简单数据类型
一、数据类型概述: Undefined、Null、Boolean、Number 、String、Object(复杂数据类型)二、Undefined类型: Undefined 类型只有一个值,即特殊的 undefined。 在使用 var 声明变量,但没有对其初始化时,这个...
分类:Web程序   时间:2015-03-31 14:30:22    阅读次数:330
[LeetCode] N-Queens II N皇后问题之二
Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.这道题是之前那道N-Queens N皇后问题的延伸,说...
分类:其他好文   时间:2015-03-31 14:24:46    阅读次数:93
【AngularJs】---表单验证
1. 必填项验证某个表单输入是否已填写,只要在输入字段元素上添加HTML5标记required即可: 2. 最小长度验证表单输入的文本长度是否大于某个最小值,在输入字段上使用AngularJS指令ng-minleng="{number}":3. 最大长度验证表单输入的文本长度是否小于或等于某个最大值...
分类:Web程序   时间:2015-03-31 14:15:44    阅读次数:106
Python基础学习(一)
Python特点(略,网上找到一大堆,不过本人觉得要用过后才能总结他的特点)一、基本概念1、python中的数有四种类型:整数、长整数、浮点数、复数整数,如1长整数 比较大的整数浮点数 如2.31,3E-2复数 如1+2j、1.1+2.2j(PS:形如的数称为复数(complex number),其...
分类:编程语言   时间:2015-03-31 12:22:00    阅读次数:222
[服务器]脚本:批处理带参数ping命令 发送邮件脚本
1、批处理带参数ping命令@echo offecho Input you IP address ......set /p IP=echo Your IP number is %IP%.ping %IP%set IP=pause2、发送告警脚本For counter = 1 To 3 Step 1S...
分类:其他好文   时间:2015-03-31 12:11:40    阅读次数:179
android常用控件纪录
//输入类型定义,text代表所有输入都可以,number只能输入数字 layout main.xml
分类:移动开发   时间:2015-03-31 10:33:35    阅读次数:132
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!