码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
msh格式解析
参考自http://geuz.org/gmsh/doc/texinfo/gmsh.html#MSH-binary-file-format $MeshFormat version-number file-type data-size $EndMeshFormat $PhysicalNames number-of-names physical-dimension physical-number ...
分类:其他好文   时间:2015-07-24 14:18:30    阅读次数:173
[LeetCode][Java] 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 (c...
分类:编程语言   时间:2015-07-24 13:00:46    阅读次数:238
JavaScript启示录
最近阅读了《JavaScript启示录》,一本很薄但是内容却很充实的书籍。展现了准确的JavaScript世界观,涉及对象、属性、复杂值、原始值、作用域、继承、this关键字、head对象等重要概念。 一、JavaScript对象 1. JavaScript预包装了9个原生对象构造函数: Number()、String()、Boolean()、Object()、Array()、Funct...
分类:编程语言   时间:2015-07-24 12:48:40    阅读次数:177
javaScript中的数据类型
一、综述javaScript中的数据类型分为两类:简单类型:Boolean,Number,String引用类型:Object其他:undefined代表变量没有初始化,null代表引用类型为空,typeOf null 返回object1)简单类型和引用类型的差异,和其他语言类似,如存储位置等2)对于...
分类:编程语言   时间:2015-07-24 12:41:46    阅读次数:138
leetCode(49):Count Primes
Description: Count the number of prime numbers less than a non-negative number, n. 判断一个数是否是质数主要有以下几种方法: 1)直接用该数除于所有小于它的数(非0,1),如果均不能被它整除,则其是质数; 2)除以小于它一半的数,因为大于其一半必定是无法整除,如果均不能被它整除,则其是质数; ...
分类:其他好文   时间:2015-07-24 10:45:19    阅读次数:99
leetCode(48):Excel Sheet Column Number And Excel Sheet Column Title
Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27 AB -> 28 class Soluti...
分类:其他好文   时间:2015-07-24 09:21:49    阅读次数:107
Plus One
问题描述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 i...
分类:其他好文   时间:2015-07-24 09:14:22    阅读次数:120
【LeetCode-面试算法经典-Java实现】【025-Reverse Nodes in k-Group(单链表中k个结点一组进行反转)】
【025-Reverse Nodes in k-Group(单链表中k个结点一组进行反转)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.   If the number of...
分类:编程语言   时间:2015-07-24 08:04:47    阅读次数:143
机器学习——多变量线性回归
【多变量线性回归模型】多变量线性回归是指输入为多维特征的情况,例如: 在上图中可看出房子的价格price由四个变量(size、number of bedrooms、number of floors 、age of home)决定,为了能够预测给定条件(四个变量)下的房子的价格(y),我们需要建立相应的线性回归模型。假设有n个变量,则相应的多变量线性回归模型如下:注意上图中的x是指一个训练样本,即每...
分类:其他好文   时间:2015-07-23 23:50:38    阅读次数:337
Project Euler:Problem 88 Product-sum numbers
A natural number, N, that can be written as the sum and product of a given set of at least two natural numbers, {a1, a2, ... , ak} is called a product-sum number: N = a1 + a2 + ... + ak = a1 × a2 × ...
分类:其他好文   时间:2015-07-23 23:48:41    阅读次数:140
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!