码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
Single Number
题目:Given an array of integers, every element appearstwiceexcept for one. Find that single one.解法一: bit manipulate1 public class Solution {2 public...
分类:其他好文   时间:2015-07-30 00:29:04    阅读次数:163
Number of 1 Bits
题目:Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 32-bit...
分类:其他好文   时间:2015-07-30 00:28:50    阅读次数:137
TweenMax_API介绍
构造函数:TweenMax(target:Object, duration:Number, vars:Object)target:Object -- 需要缓动的对象duration:Number -- 缓动持续时间vars:Object -- 其它参数(特有属性29个,插件17个,公共属性10个,公...
分类:Windows程序   时间:2015-07-30 00:28:39    阅读次数:534
ZOJ 3447 Doraemon's Number Game(Java优先队列·BigInteger)
题意  给你一个数组  你每次可以从中删掉2到k个数  然后把删掉的数的积加入到原数组  直到最后只剩一个数   求这样能得到的最大值和最小值的差 每次选的数值越小  选的数量越少  最后得到的结果肯定越大  因为这样大的数可以乘以最大的倍数  运算的次数也是最多从而使+1的次数最多  这显然是有利于最后结果的增大的 同理  每次选的数越大  选的数越多  最后得到的结果越小 这样最大值就是...
分类:编程语言   时间:2015-07-29 21:22:20    阅读次数:205
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-07-29 19:25:50    阅读次数:147
数字转换为汉字小算法
/** * 将数字转换成对应的汉字 * * @param number * 数字 * @return 对应的汉字 */ public static String intToChinese(int number) { char[] val = String.valueOf(number).toCharArray(); int len = va...
分类:编程语言   时间:2015-07-29 19:20:52    阅读次数:141
[LeetCode][Java] Sum Root to Leaf Numbers
题目: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find t...
分类:编程语言   时间:2015-07-29 19:19:56    阅读次数:123
关于___Block的作用
原理:不使用的话会再创建的时候被直接捕获带block中number改变block不会改变,也就是没有指针指向。如果用了也就是指针指向了会随着外部的number变化而变化,但是调用的时候也必须在number的number声明的scope,否则会出现未定义
分类:其他好文   时间:2015-07-29 19:02:09    阅读次数:125
R720 disable hyperthreading
在bios设置里面找不到该选项,是因为这个选择是别的表示方式代替的: 官方用户手册中描述: Logical Processor  Allows you to enable or disable logical processors and display the number of logical processors. If the Logical Processor option is...
分类:其他好文   时间:2015-07-29 12:15:59    阅读次数:116
Oracle procedure/function
--函数的创建create function func1(dno number)return NUMBER--必须带有返回值is v_max number;--定义返回值 begin select max(sal) into v_max--赋值 from emp where de...
分类:数据库   时间:2015-07-29 11:47:01    阅读次数:132
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!