首页 > 2015年09月02日 > 全部分享
数据结构之---C语言实现平衡二叉树(AVL树)
数据结构之---C语言实现平衡二叉树(AVL树)...
分类:编程语言   时间:2015-09-02 00:39:34    收藏:0  评论:0  赞:0  阅读:320
[Leetcode 264] Ugly Number II
Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12 is the sequence of the first ...
分类:其他   时间:2015-09-02 00:39:23    收藏:0  评论:0  赞:0  阅读:270
[Leetcode 263] Ugly Number
Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8 are ugly while 14 is not ugly si...
分类:其他   时间:2015-09-02 00:39:14    收藏:0  评论:0  赞:0  阅读:263
[LeetCode 153] Majority Element
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that the array is non-empty and the majority element ...
分类:其他   时间:2015-09-02 00:39:14    收藏:0  评论:0  赞:0  阅读:286
树链剖分 模版
树链剖分 模版#include#define lson l,m,rt G[maxn];int dep[maxn],son[maxn],fa[maxn],siz[maxn];int top[maxn];int id[maxn];int num;int val[maxn];struct Tree{ .....
分类:其他   时间:2015-09-02 00:38:33    收藏:0  评论:0  赞:0  阅读:378
数组中只出现一次的数字
一个整型数组里除了两个数字之外,其他的数字都出现了两次。请写程序找出这两个只出现一次的数字。数字都出现两次,则异或肯定为0。考虑下这个题目的简化版——数组中除一个数字只出现1次外,其它数字都成对出现,要求尽快找出这个数字。根据异或运算的特点,直接异或一次就可以找出这个数字。现在数组中有两个数字只出现...
分类:编程语言   时间:2015-09-02 00:38:23    收藏:0  评论:0  赞:0  阅读:403
ThinkPHP学习笔记
一:入口文件ThinkPHP框架采用单一入口模式,拥有一个单一入口文件,一般是index.php文件,位于应用根目录下。入口文件必须要做的是载入框架入口文件,即ThinkPHP框架的入口文件。可选的操作包括定义系统级常量,定义调试模式或者部署模式,定义框架路径或者项目路径。二:自动生成在第一次访问入...
分类:Web开发   时间:2015-09-02 00:38:13    收藏:0  评论:0  赞:0  阅读:291
JAVA8
环境jdk1.8eclipse kepler。注意:eclipse需要装插件:instanll new software:地址:http://dist.springsource.com/snapshot/TOOLS/java8/e43小例子[java]view plaincopyprint?impo...
分类:编程语言   时间:2015-09-02 00:38:03    收藏:0  评论:0  赞:0  阅读:255
C++ 模板类demo
#include using namespace std;template class MyVector{ friend ostream & operator(ostream &out, const MyVector &obj);public: MyVector(int size = ...
分类:编程语言   时间:2015-09-02 00:37:53    收藏:0  评论:0  赞:0  阅读:318
C# 发送邮件
Email类 public class Email { /// /// 发送者 /// public string mailFrom { get; set; } /// /// 收件人 //...
分类:Windows开发   时间:2015-09-02 00:37:33    收藏:0  评论:0  赞:0  阅读:371
Android Security
Android Security ¶确认签名 ¶Debug签名:$ jarsigner -verify -certs -verbose bin/TemplateGem.apksm 2525 Sun Jun 02 23:44:06 CST 2013 assets/XmlPullParse...
分类:移动平台   时间:2015-09-02 00:37:13    收藏:0  评论:0  赞:0  阅读:1220
平衡二叉树
输入一棵二叉树,判断该二叉树是否是平衡二叉树。方法一:递归,每次求解left,right的深度然后做差判断。之后递归left&&right。 1 class Solution { 2 public: 3 bool IsBalanced_Solution(TreeNode* pRoot) { ...
分类:其他   时间:2015-09-02 00:36:43    收藏:0  评论:0  赞:0  阅读:269
百度Ueditor编辑器取消多图上传对话框中的图片搜索
百度Ueditor确实是一个非常强悍的编辑器,功能强大!但是实际开发需求复杂,总会有各种不符合要求的,比如想要取消多图上传的“图片搜索”选项卡(这个图片搜索真心难用)!以ueditor 1.4.3为例:1.打开ueditor1.4.3\dialogs\image\image.html2.删除第25行...
分类:Web开发   时间:2015-09-02 00:36:33    收藏:0  评论:0  赞:0  阅读:391
zabbix 安装
1、在已有的LAMP或者LNMP的基础上安装zabbix,安装一些依赖包:yum -y install mysql-devel libcurl-devel net-snmp-devel2、添加用户: groupadd zabbixuseradd zabbix -g zabbix3、创建数据库,添加授...
分类:其他   时间:2015-09-02 00:36:23    收藏:0  评论:0  赞:0  阅读:391
pat1032. Sharing (25)
1032. Sharing (25)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueTo store English words, one method is to use linked lists and store a word...
分类:其他   时间:2015-09-02 00:36:22    收藏:0  评论:0  赞:0  阅读:281
C程序设计语言练习题1-10
练习1-10 编写一个将输入复制到输出的程序,并将起重的制表符替换为\t,把回退符替换成\b,把反斜杠替换为\\。这样可以将制表符和回退符以可见的方式显示出来。代码如下:#include // 包含标准库的信息。#include int main( void ) // 定...
分类:编程语言   时间:2015-09-02 00:36:06    收藏:0  评论:0  赞:0  阅读:247
现代cpu的合并写技术对程序的影响
intel的cpu 写缓冲区对性能的影响
分类:其他   时间:2015-09-02 00:35:53    收藏:0  评论:0  赞:0  阅读:229
collection tree protocol
本文所属图书>传感网原理与技术本书根据《高等院校物联网工程专业发展战略研究报告暨专业规范(试行)》和物联网工程本科专业的教学需要,结合传感网的最新发展及其应用现状编写而成。主要内容包括传感网的概述,通信协议,数据管理技术,拓扑立即去当当网订购汇聚数据到基站是传感网应用程序的常见需求。常用的方法是建立...
分类:其他   时间:2015-09-02 00:35:43    收藏:0  评论:0  赞:0  阅读:629
java 8 中lambda表达式学习
转自http://blog.csdn.net/renfufei/article/details/24600507http://www.jdon.com/idea/java/10-example-of-lambda-expressions-in-java8.htmlLambda表达式的语法基本语法:(...
分类:编程语言   时间:2015-09-02 00:35:23    收藏:0  评论:0  赞:0  阅读:353
如何获取启动文件路径 GetModuleFileName
如何获取启动文件路径GetModuleFileNameCString GetExeDirPath(){ char fn[MAX_PATH] = {0}; CString strExeDirPath; GetModuleFileName(NULL, strExeDirPath.Get...
分类:其他   时间:2015-09-02 00:35:13    收藏:0  评论:0  赞:0  阅读:380
1294条   上一页 1 ... 55 56 57 58 59 ... 65 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!