码迷,mamicode.com
首页 >  
搜索关键字:ugly number    ( 27156个结果
LeetCode: Maximum Depth of Binary Tree 题解
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-05-23 11:54:10    阅读次数:317
Algorithm for Maximum Subsequence Sum z
MSS(Array[],N)//Where N is the number of elements in array{sum=0; //current summax-sum=0;//Maximum Sumseq-start=0;//start of the subsequenceseq-end=0;...
分类:其他好文   时间:2014-05-23 11:03:58    阅读次数:221
POJ 2329 (暴力+搜索bfs)
Nearest number - 2 Description Input is the matrix A of N by N non-negative integers....
分类:其他好文   时间:2014-05-22 09:38:33    阅读次数:236
s1考试 图书管理系统 结构体版
#include #include #include #include #include using namespace std; struct Library { long number;//编号 string bookname;//书名 string author;//作者 string press;//出版社 int price;//价格 }...
分类:其他好文   时间:2014-05-22 07:17:38    阅读次数:206
hadoop多文件格式输入
版本:CDH5.0.0 (hdfs:2.3,mapreduce:2.3,yarn:2.3)hadoop多文件格式输入,一般可以使用MultipleInputs类指定不同的输入文件路径以及输入文件格式。比如现在有如下的需求:现有两份数据:phone:123,good number 124,common number 125,bad numberuser:zhangsan,123 lisi,124 w...
分类:其他好文   时间:2014-05-22 06:23:52    阅读次数:391
2013年北京师范大学新生程序设计竞赛网络赛--D. Number theory(模拟取余)
D. Number theory Time Limit: 1000ms Case Time Limit: 1000ms Memory Limit: 65536KB 64-bit integer IO format: %lld      Java class name: Main Submit Status PID: 34055 Font Size:  + ...
分类:其他好文   时间:2014-05-20 16:24:12    阅读次数:245
LeetCode:Single Number II
题目:     Given an array of integers, every element appears three times except for one. Find that single one.     Note:     Your algorithm should have a linear runtime complexity. Could you implem...
分类:其他好文   时间:2014-05-20 16:22:52    阅读次数:241
hud 2089 不要62 (数位dp)
#include#include#include#define max 10int dp[max][3];int number[max];//dp[i][0] 前i位数中不符合要求的总个数//dp[i][1] 前i位数中最高位是2的个数//dp[i][2] 前i位数中存在含4和有连续62的个数voi...
分类:其他好文   时间:2014-05-20 13:24:39    阅读次数:252
分页存储过程
表T_phone中字段:Id, Haoduan, Adress, Type, Quhao1,ROW_NUMBER()是个开窗函数,它可以与聚合函数一起用,就算删除表中的列,排序也不会乱select *,ROW_NUMBER() over(order by id) as 排序 from T_Phone...
分类:其他好文   时间:2014-05-20 13:16:26    阅读次数:260
Leetcode:Plus One
戳我去解题Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit ...
分类:其他好文   时间:2014-05-20 10:42:14    阅读次数:244
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!