码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
Distinct Subsequences -- from Leetcode
Problem:Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from ...
分类:其他好文   时间:2015-01-24 15:44:24    阅读次数:179
uva 725 Division(暴力枚举)
uva 725  Division Write a program that finds and displays all pairs of 5-digit numbers that between them use the digits 0 through 9 once each, such that the first number divided by the second ...
分类:其他好文   时间:2015-01-24 14:32:11    阅读次数:143
[leetcode]Largest Number
Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330. Note: The result may be very ...
分类:其他好文   时间:2015-01-24 14:29:39    阅读次数:137
Jquery class2type
// Populate the class2type mapjQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { class2typ...
分类:Web程序   时间:2015-01-24 13:04:35    阅读次数:475
typeof
typeof 是一个一元运算,放在一个运算数之前,运算数可以是任意类型。它返回值是一个字符串,该字符串说明运算数的类型。你 知道下面typeof运算的结果吗?typeof(1);typeof(NaN);typeof(Number.MIN_VALUE);typeof(Infinity);typeof(...
分类:其他好文   时间:2015-01-24 12:55:55    阅读次数:131
Max Points on a Line Leetcode Python
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 这道题做的时候要考虑几个edge  1. infinity 2. same points 这里我们用hashtable将得到的slope存起来,最后每过一个点将其和其他所有点的组合成的sl...
分类:编程语言   时间:2015-01-24 11:45:17    阅读次数:208
[Oracle]日期和毫秒转换(Date->int)
--日期转换毫秒SELECTTO_NUMBER(TO_DATE('2005-03-2912:30:45','YYYY-MM-DDHH24:MI:SS')- TO_DATE('1970-01-01 0:0:0','YYYY-MM-DDHH24:MI:SS'))*24*60*60*1000 FROMDU...
分类:数据库   时间:2015-01-24 11:26:02    阅读次数:201
Reverse Nodes in K-Groups Leetcode Python
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it ...
分类:编程语言   时间:2015-01-24 08:57:54    阅读次数:148
从零开始学JavaScript四(数据类型)
一、分类基本数据类型:undefined、null、string、Boolean、number复杂数据类型:objectobject的属性以无序的名称和值对的形式 (name : value) 来定义1.1 、typeof操作符鉴于ECMAScript是松散型的,因此需要一种手段来检测给定的变量的数...
分类:编程语言   时间:2015-01-24 00:24:33    阅读次数:275
我的vimrc
1 #set number 2 set showmatch 3 set hlsearch 4 set incsearch 5 set ruler 6 set cursorline 7 set cursorcolumn 8 9 set tabstop=210 set expandtab11 set.....
分类:系统相关   时间:2015-01-24 00:22:05    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!