码迷,mamicode.com
首页 > 其他好文
LeetCode --- 110. Balanced Binary Tree
题目链接:Balanced Binary Tree Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees ...
分类:其他好文   时间:2015-04-17 18:17:21    阅读次数:140
LeetCode --- 109. Convert Sorted List to Binary Search Tree
题目链接:Convert Sorted List to Binary Search Tree Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 这道题的要求是将有序链表转化成高度平衡的二叉搜索树(BST)。 1. 利...
分类:其他好文   时间:2015-04-17 18:16:32    阅读次数:165
杭电1263(水果)
点击打开杭电1263 Problem Description 夏天来了~~好开心啊,呵呵,好多好多水果~~ Joe经营着一个不大的水果店.他认为生存之道就是经营最受顾客欢迎的水果.现在他想要一份水果销售情况的明细表,这样Joe就可以很容易掌握所有水果的销售情况了.   Input 第一行正整数N(0 每组测试数据的第一行是一个整数M(0   Output 对...
分类:其他好文   时间:2015-04-17 18:14:25    阅读次数:129
leetcode || 99、Recover Binary Search Tree
problem: Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n) space is pretty straight forwar...
分类:其他好文   时间:2015-04-17 18:14:49    阅读次数:148
nyoj 最强DE 战斗力 (数论入门)
最强DE 战斗力 时间限制:1000 ms  |  内存限制:65535 KB 描述 春秋战国时期,赵国地大物博,资源非常丰富,人民安居乐业。但许多国家对它虎视眈眈,准备联合起来对赵国发起一场战争。 显然,面对多个国家的部队去作战,赵国的兵力明显处于劣势。战斗力是决定战争成败的关键因素,一般来说,一支部队的战斗力与部队的兵力成正比。但当把一支部队分成若干个作战队伍时,这个部队的战斗力就...
分类:其他好文   时间:2015-04-17 18:15:07    阅读次数:159
敏捷与Scrum-初步记录
敏捷与Scrum-初步记录...
分类:其他好文   时间:2015-04-17 18:16:07    阅读次数:102
lambda表达式详解
表达式定义:[ capture-list ] ( params ) mutable(optional) exception attribute -> ret { body } (1) [ capture-list ] ( params ) -> ret { body } (2) [ capture-list ] ( params ) { body } (3)...
分类:其他好文   时间:2015-04-17 18:14:13    阅读次数:157
识别字符串中的整数并转换为数字形式
识别字符串中的整数并转换为数字形式 接口函数: void take_num(const char *strIn, int *n, unsigned int *outArray) 【输入】 strIn: 输入的字符串 【输出】 n: 统计识别出来的整数个数outArray...
分类:其他好文   时间:2015-04-17 18:15:25    阅读次数:170
安装配置openmpi
主要安装步骤分为如下5步,看完这些后,回过头去看安装包里的INSTALL文件,收获会更多。 下载、解压openmpi到官网下载最新版本后、解压tar -xvf openmpi-xxx cd openmpi-xxx配置,- -prefix选项表示安装目录./configure --prefix="/opt/openmpi"Build 安装, -j 选项表示编译使用的核心数make -j 4 all 有...
分类:其他好文   时间:2015-04-17 18:15:25    阅读次数:201
获得qstring字符串的长度(字节长度和所占的像素宽度)
1.QString 用length()返回字符串的长度,即字节数, 在中英文字符都是以 Unicode 方式编码的,所以,无论中英文都算的长度为 1。 想要取得英文长度为 1 中文长度为 2 的总长度,必须用toLocal8bit()。具体使用方法如下所示: QString s = "ab中文"; int length = s.length(); //length = 4; ...
分类:其他好文   时间:2015-04-17 18:12:24    阅读次数:537
【OpenCV】图像金字塔详解及编程实现
图像金字塔被广泛用于各种视觉应用中。图像金字塔是一个图像集合,集合中所有的图像都源于同一个原始图像,而且是通过对原始图像连续降采样获得,直到达到某个中止条件才停止降采样。有两种类型的图像金字塔常常出现在文献和应用中:高斯金字塔和拉普拉斯金字塔。高斯金字塔用来向下降采样图像,而拉普拉斯金字塔则用来从金字塔低层图像中向上采样重建一个图像。 void cvPyrDown( const CvArr* s...
分类:其他好文   时间:2015-04-17 18:12:24    阅读次数:206
给UITextField添加左侧指示图片
给UITextField添加左侧指示图片...
分类:其他好文   时间:2015-04-17 18:13:10    阅读次数:211
jeasyopc放在tomcat上不能获取配置信息的问题
OPC...
分类:其他好文   时间:2015-04-17 18:13:49    阅读次数:173
leetcode || 100、Same Tree
problem: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same ...
分类:其他好文   时间:2015-04-17 18:13:17    阅读次数:89
sublime Text3 package control
import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib...
分类:其他好文   时间:2015-04-17 18:13:28    阅读次数:114
SharePoint 2013 可视化工作流设计图解---- 如何修改工作流中的图像,内容和增加审批状态
SharePoint 2013 可视化工作流设计图解 地点:西宁: SharePoint 2013 加BI 项目。 平台环境:SharePoint2013   系统环境windows server2012: 开发工具:SharePoint designer 2013   前提:服务器安装完成Visio 2013 旗舰版:             使用账户有权限 感谢兄弟 胡祥文 的帮助...
分类:其他好文   时间:2015-04-17 18:12:56    阅读次数:144
RabbitMQ安装使用详解
1.下载相应的版本安装:http://www.rabbitmq.com/download.htmleg:http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.1/rabbitmq-server_3.5.1-1_all.deb2.安装web管理插件rabbitmq在ubuntu下路径:/etc/rabbitmq /usr/lib/rabbitmq...
分类:其他好文   时间:2015-04-17 18:12:02    阅读次数:134
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!