码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
HDU 1394——Minimum Inversion Number——————【线段树单点增减、区间求和】
Minimum Inversion NumberTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 1394Appoint description:DescriptionT...
分类:其他好文   时间:2015-04-04 13:35:30    阅读次数:135
[LeetCode 179] Largest Number
题目链接:largest-number import java.util.ArrayList; import java.util.Comparator; import java.util.List; /** * Given a list of non negative integers, arrange them such that they form the largest n...
分类:其他好文   时间:2015-04-04 12:19:51    阅读次数:146
学习笔记:LeetCode104:Maximum Depth of Binary Tree
LeetCode104:Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path fr...
分类:其他好文   时间:2015-04-04 11:52:56    阅读次数:93
[模拟]ZOJ3485 Identification Number
题意:给了一串15位或18位的身份证号码,求 在改变最少位数的情况下, 输出正确合法的身份证号合法的身份证 是按照以下规则:前6位以及“Order code”三位 一定合法其中X是根据前17位的值计算出来的 按照如下公式 (a1就是最后一位,若为10就是X)另外 题目还规定了“Date of Bir...
分类:其他好文   时间:2015-04-04 11:52:25    阅读次数:154
leetcode-9 Palindrome Number
?? 问题描述: Determine whether an integer is a palindrome. Do thiswithout extra space. click to showspoilers. Some hints: Could negative integers be palindromes? (ie, -1) If yo...
分类:其他好文   时间:2015-04-04 09:18:33    阅读次数:137
Lintcode: Single Number III
Given 2*n + 2 numbers, every numbers occurs twice except two, find them.ExampleGiven [1,2,2,3,4,4,5,3] return 1 and 5ChallengeO(n) time, O(1) extra sp...
分类:其他好文   时间:2015-04-04 06:49:31    阅读次数:165
[LeetCode] Combination Sum 回溯
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:其他好文   时间:2015-04-04 06:38:53    阅读次数:143
【leetcode】Sum Root to Leaf Numbers
Question: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...
分类:其他好文   时间:2015-04-04 01:08:13    阅读次数:190
K-th Number 线段树(归并树)+二分查找
K-th Number题意:给定一个包含n个不同数的数列a1, a2, ..., an 和m个三元组表示的查询。对于每个查询(i, j, k), 输出ai, ai+1, ... ,aj的升序排列中第k个数 。题解:用线段树,每个节点维护一个区间...
分类:其他好文   时间:2015-04-03 23:48:11    阅读次数:209
hdu 1698 Just a Hook 线段树区间更新
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1698Let us number the consecutive metallic sticks of the hook from 1 to N. For each operation, Pudge ca...
分类:其他好文   时间:2015-04-03 23:45:47    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!