码迷,mamicode.com
首页 >  
搜索关键字:level order    ( 23817个结果
Android-自定义图像资源的使用(2)
Android-自定义图像资源的使用2014年4月29日  上一篇博客,介绍前面几种图像资源的使用,本篇博客把剩下的全部介绍完: 普通图像资源XML图像资源Nine-patch图像资源XML Nine-patch图像资源图层(Layer)图像资源图像状态(state)资源图像级别(Level)资源淡入淡出(transition)资源嵌入(Inset)图像资源剪切(Clip)图像资源比例(Scale...
分类:移动开发   时间:2014-07-22 23:03:13    阅读次数:611
【LeetCode】- Search Insert Position(查找插入的位置)
[ 问题: ] Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in th...
分类:其他好文   时间:2014-07-22 23:01:15    阅读次数:270
[NHibernate]持久化类(Persistent Classes)
系列文章[Nhibernate]体系结构[NHibernate]ISessionFactory配置引言持久化类是应用程序用来解决商业问题的类(比如,在电子交易程序中的Customer和Order)。持久化类,就如同它的名字暗示的,是短暂存在的,它的实例会被持久性保存于数据库中。如果这些类符合简单的规...
分类:系统相关   时间:2014-05-12 16:38:19    阅读次数:380
python报错 IndentationError: unindent does not match any outer indentation level
这个是缩进问题,重新将行前面的空格删掉,换位tab
分类:编程语言   时间:2014-05-12 16:35:23    阅读次数:383
Rhythmk 学习 Hibernate 05 - Hibernate 表间关系 [ManyToOne,OneToMany]
1、项目结构: 1.1、场景说明: 一个订单,包含多个产品1.2、类文件: Order.javapackage com.rhythmk.model;import java.util.Date;public class Order { public int getOrderID() { re...
分类:Web程序   时间:2014-05-10 19:37:59    阅读次数:489
UVA之409 - Excuses, Excuses!
Excuses, Excuses!  Judge Ito is having a problem with people subpoenaed for jury duty giving rather lame excuses in order to avoid serving. In order to reduce the amount of time requi...
分类:其他好文   时间:2014-05-02 23:54:43    阅读次数:474
leetcode: Subsets & Subsets II
SubsetsGiven a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must...
分类:其他好文   时间:2014-05-02 16:39:15    阅读次数:315
Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:其他好文   时间:2014-05-01 20:18:54    阅读次数:425
最大流之dinic
先用bfs预处理出层次图,然后在层次图上用dfs找增广路径,理论复杂度O(n*n*m)const int INF=0xfffffff ;struct node{ int s,t,cap,nxt ;}e[200005] ;int m,n,head[10005],level[10005],cnt ...
分类:其他好文   时间:2014-05-01 20:05:16    阅读次数:379
【CareerCup】Trees and Graphs—Q4.3
题目: Given a sorted (increasing order) array, write an algorithm to create a binary tree with minimal height. 翻译: 给定一个有序数组(递增),写程序构建一棵具有最小高度的二叉树。 思路: 要使二叉树的高度最小,则要尽量使其左右子树的节点数目相当,自然就考虑到将其构造成为二叉排序树,且将有序数组的中间大的数作为根节点,这样得到的二叉树的高度便是最小的。...
分类:其他好文   时间:2014-05-01 17:48:45    阅读次数:321
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!