码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
LeetCode89/60 Gray Code/Permutation Sequence--迭代
一:Leetcode 89 Gray Code 题目:The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in ...
分类:其他好文   时间:2015-04-20 17:10:42    阅读次数:148
LeetCode 9 Palindrome Number 回文数字
题目:Determine whether an integer is a palindrome. Do this without extra space. 翻译:判断一个数字是否是回文数,不要额外空间。 解题思路:因为数字既然传过去了,就不会有越界的问题。每次只需要取最前面和最后面的那一位数字进行比较,相同则继续,不同则返回、 首先要获取数字的位数,假设数字是12344321,一共有8位。 ...
分类:其他好文   时间:2015-04-20 17:09:41    阅读次数:132
ORA-03113: end-of-file on communication channel
oracle打开报错:SQL> alter database open  2  ;alter database open*ERROR at line 1:ORA-03113: end-of-file on communication channelProcess ID: 29196Session ID: 1144 Serial number: 7SQL> 去查看后台alert日志,信息显示如下:E...
分类:其他好文   时间:2015-04-20 16:54:17    阅读次数:118
WHU1564---Circle (后缀数组)
Description Here is a circle sequence S of length n, and you can choose a position and remove the number on it. After that,you will get a integer. More formally,you choose a number x( 1<=x<=n ),then...
分类:编程语言   时间:2015-04-20 15:01:12    阅读次数:209
[LeetCode] 3Sum Closest
3Sum Closest Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input ...
分类:其他好文   时间:2015-04-20 14:58:00    阅读次数:120
[LeetCode] Reverse Nodes in k-Group 每k个一组翻转链表
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:其他好文   时间:2015-04-20 14:44:04    阅读次数:98
linux学习笔记-第十五课-日常管理(二)
一、抓包工具,分析工具抓包工具:tcpdump格式:tcpdump[-AennqX][-i接口][-w储存档名][-c次数][-r档案][所欲撷取的封包数据格式]常用选项:-A:封包的内容以ASCII显示,通常用来捉取WWW的网页封包资料。-e:使用资料连接层(OSI第二层)的MAC封包数据来显示;-nn:直接以IP及por..
分类:系统相关   时间:2015-04-20 13:22:35    阅读次数:335
javascript typeof操作符
typeof操作符:(1) 检测给定变量的数据类型;(2) 对一个值使用typeof操作符可能返回下列某个字符串:"undefined"——如果这个值未定义;"boolean"——如果这个值是布尔值;"string"——如果这个值是字符串;"number"——如果这个值是数值;"object"——如...
分类:编程语言   时间:2015-04-20 13:00:05    阅读次数:221
TweenLite
TweenLite 使用详解(译文)TweenLite参数说明:1) $target : Object- 作为目标的对象, MovieClip或者其它对象2) $duration : Number- 动画的时间长度(单位:秒)3)$vars : Object– 对象,通过属性值,来存贮各种属性参数用...
分类:其他好文   时间:2015-04-20 12:44:20    阅读次数:154
【编程小题目7】求s=a+aa+aaa+aaaa+aa...a的值
题目:求s=a+aa+aaa+aaaa+aa...a的值,其中a是一个数字。例如2+22+222+2222+22222(此时共有5个数相加),几个数相加有键盘控制#include #include using namespace std;long Function(int number, int n...
分类:其他好文   时间:2015-04-20 12:38:12    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!