码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
Sum Root to Leaf Numbers <leetcode>
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:其他好文   时间:2014-09-09 21:27:19    阅读次数:194
个人使用过的GVIM 操作
1.大小写转换:[开始位置] ---- 可以指定开始的位置,默认是光标的当前位置 gu ---- 把选择范围全部小写 gU ---- 把选择范围全部大写2.跳转到指定行方法是:n 然后回车。譬如第100行。其中显示行号可以用set number指令。3.全选复制如果你...
分类:其他好文   时间:2014-09-09 21:21:29    阅读次数:218
精读《javascript高级程序设计》笔记一——基本概念
语法严格模式 启用严格模式,在脚本顶部或函数内部上方添加"use strict";语句.数据类型typeoftypeof返回undifined,boolean,number,string,object,function六种字符串,typeof null会返回"object".数据类型包括六种:und...
分类:编程语言   时间:2014-09-09 20:07:39    阅读次数:205
javascript中检查数组中是否存在某个值
function inArray(needle,array,bool){ if(typeof needle=="string"||typeof needle=="number"){ for(var i in array){ if(needle===a...
分类:编程语言   时间:2014-09-09 17:38:39    阅读次数:221
javascript数据类型
在js中常见的六种数据类型:String类型、Null类型、Number类型、Boolean类型、Object类型。1、typeof的注意点涉及到数据类型,不免会提到,操作符 typeof。要注意:1、typeof是操作符,不是方法。虽然我们经常使用typeof()的方式获取对象的数据类型。2、对 ...
分类:编程语言   时间:2014-09-09 15:49:48    阅读次数:276
oracle创建表之前判断表是否存在,如果存在则删除已有表
--判断表是否存在,如果存在则删除declare num number; begin select count(1) into num from all_tables where TABLE_NAME = 'EMP' and OWNER='SCOTT'; if...
分类:数据库   时间:2014-09-09 15:45:38    阅读次数:254
zoj 3816 Generalized Palindromic Number(暴力枚举)
题目链接:zoj 3816 Generalized Palindromic Number 题目大意:给定n,找一个最大的数x,保证x小于n,并且x为palindromic number 解题思路:枚举前i个放于n相同的数,然后去构造后半部分即可。 #include #include #include using namespace std; typedef unsigned...
分类:其他好文   时间:2014-09-09 13:20:28    阅读次数:131
Codeforces 464C Substitutes in Number(高效+快速幂)
题目链接:Codeforces 464C Substitutes in Number 题目大意:给定一个字符串,以及n中变换操作,将一个数字变成一个字符串,可能为空串,然后最后将字符串当成一 个数,取模1e9+7。 解题思路:将操作倒过来处理,这样维护每个数来的val,len两个,val表示对应数值取模1e9+7,len表示对应有多少 位,再计算的过程中要使用。 #inc...
分类:其他好文   时间:2014-09-09 13:13:48    阅读次数:197
Leetcode dfs Letter Combinations of a Phone Number
Letter Combinations of a Phone Number  Total Accepted: 15964 Total Submissions: 60700My Submissions Given a digit string, return all possible letter combinations that the number could repr...
分类:其他好文   时间:2014-09-09 13:13:39    阅读次数:191
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!