码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
js简单的面试题
1,js有哪些数据类型,数据类型的判断函数?String,Number,Boolean,Null,Undefined,Object判断函数有:typeof,instanceof,constructor,prototype接下来我们一一对这些进行举例子。Js代码vara='nihao';varb=22...
分类:Web程序   时间:2015-04-01 09:22:33    阅读次数:208
3Sum Closest——LeetCode
Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m...
分类:其他好文   时间:2015-04-01 01:38:27    阅读次数:104
SPOJ MYQ10 Mirror Number 数位dp'
题目链接:点击打开链接 MYQ10 - Mirror Number A number is called a Mirror number if on lateral inversion, it gives the same number i.e it looks the same in a mirror. For example 101 is a mirror number whi...
分类:其他好文   时间:2015-04-01 00:28:20    阅读次数:196
LeetCode #Reverse Number#
LeetCode #Single Number# 刚背了单词,然后做个题玩玩~挑个软柿子踩踩~哈哈 很简单的思路.不过好玩的是我忘记检查处理完的数据是否符合整形数据返回了.因而好一会儿不能AC. 感谢 @Fantasy. 很快的指出我没有检查返回数据的范围. 先给出我超丑陋的解(python), 而后给出其他高手给出的很优雅的解!!也是用pyth...
分类:其他好文   时间:2015-04-01 00:24:47    阅读次数:138
[*leetcode 17] Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:其他好文   时间:2015-04-01 00:06:37    阅读次数:119
SPOJ694--- DISUBSTR - Distinct Substrings(后缀数组)
Given a string, we need to find the total number of its distinct substrings. InputT- number of test cases. T<=20; Each test case consists of one string, whose length is <= 1000 OutputFor each test c...
分类:编程语言   时间:2015-03-31 22:31:39    阅读次数:163
面向对象JavaScript的基本概念
一、类和对象 1, JavaScript对象分为三类:本地对象,内置对象,宿主对象。 本地对象有15种:Object Function Array String Number Boolean Date RegExp Error EvalError RangeError Rrefenc...
分类:编程语言   时间:2015-03-31 21:41:12    阅读次数:116
dp --- Codeforces 245H :Queries for Number of Palindromes
Queries for Number of PalindromesProblem's Link: http://codeforces.com/problemset/problem/245/HMean:给你一个字符串,然后q个询问:从i到j这段字符串中存在多少个回文串。analyse:dp[i][j]...
分类:其他好文   时间:2015-03-31 19:44:08    阅读次数:110
IAP 中颖单片
void?Int_timer_tf2(?void?)?interrupt?7?using?2 { ???...?source?lines?... } There are two keywords: interrupt x?defines the interrupt number. This number tells compiler which vector a...
分类:其他好文   时间:2015-03-31 18:18:07    阅读次数:178
Reverse Nodes in k-Group--LeetCode
题目: 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...
分类:其他好文   时间:2015-03-31 18:02:00    阅读次数:114
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!