码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
LeetCode222——Count Complete Tree Nodes
Given a complete binary tree, count the number of nodes. Definition of a complete binary tree from Wikipedia: In a complete binary tree every level, except possibly the last, is completely fille...
分类:其他好文   时间:2015-08-13 01:13:54    阅读次数:117
UTF8,UTF16,UTF32,UTF16-LE,UTF16-BE,GBK 之间的转换
Unicode是Unicode.org制定的编码标准,目前得到了绝大部分操作系统和编程语言的支持。Unicode.org官方对Unicode的定义是:Unicode provides a unique number for every character。可见,Unicode所做的是为每个字符定义了...
分类:其他好文   时间:2015-08-12 23:28:27    阅读次数:140
【LeetCode】Single Number I & II
Single Number I :Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linea...
分类:其他好文   时间:2015-08-12 23:03:53    阅读次数:141
NEU OJ 1651 Great number
循环节是2000000016字符串读入,用一下高精度对2000000016取个模,用一下快速幂就可以算出答案了。#include #include #includeusing namespace std;const long long MOD = 1e9+7;long long mod1(char ...
分类:其他好文   时间:2015-08-12 21:19:58    阅读次数:112
NEU OJ 1649 GMZ’s Pretty Number
先来一次线性素数筛,把1到10000000的素数都筛选出来,然后暴力跑一遍所有可能的值,打个表,查询的时候o(1)效率出解。#include#include#include#include#include#includeusing namespace std; const long N = 1000...
分类:其他好文   时间:2015-08-12 21:14:39    阅读次数:126
LeetCode:Number of 1 Bits - 整数的汉明重量
1、题目名称 Number of 1 Bits(整数的汉明重量) 2、题目地址 https://leetcode.com/problems/number-of-1-bits/ 3、题目内容 英文:Write a function that takes an unsigned integer and returns the number ...
分类:其他好文   时间:2015-08-12 20:01:39    阅读次数:128
Linux的启动流程
一.硬件启动引导1.poweron2.BIOS(初始化硬件查找启动介质)3.MBR共512bytesMBR包含:1.446bytes:bootloader(grub)2.64bytes:partition(分区表)3.2bytes:magicnumber(校验)二.grub启动引导1.cat/boot/grub/grub.conf(查看配置文件)2.ls-letc/grub/conf(通常查看链接..
分类:系统相关   时间:2015-08-12 19:54:12    阅读次数:125
HUNAN Interesting Integers(爆力枚举)
Undoubtedly you know of the Fibonacci numbers. Starting with F1 = 1 and F2 = 1, every next number is the sum of the two previous ones. This results in the sequence 1, 1, 2, 3, 5, 8, 13, . . .. Now...
分类:其他好文   时间:2015-08-12 19:30:18    阅读次数:93
JavaScript在IE6,IE7下报错'expected identifier, string or number'
问题:代码在Forefox和IE8下工作正常,但是在IE6下报错:expected identifier, string or number假如变量options有多个选项,那么我们可以用逗号分开;但是最后一个选项后不可以有逗号。虽然IE8和Firefox可以忽略这个逗号,但是IE6下会报错(据说I...
分类:编程语言   时间:2015-08-12 18:51:31    阅读次数:140
oracle获取当前时间
用法to_char(sysdate,'yyyy-MM-dd HH24:mi:ss)把时间变成字符串 用法to_date('2015-08-12 15:53:37','yyyy-MM-dd HH24:mi:ss)把字符串变成时间 用法to_number把字符串变成数字 用法trunc负责截取数字或.....
分类:数据库   时间:2015-08-12 18:42:57    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!