码迷,mamicode.com
首页 > 2015年09月02日 > 全部分享
数据结构之---C语言实现平衡二叉树(AVL树)
数据结构之---C语言实现平衡二叉树(AVL树)...
分类:编程语言   时间:2015-09-02 00:41:07    阅读次数:210
[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:41:00    阅读次数:224
[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:41:56    阅读次数:155
[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:42:20    阅读次数:175
树链剖分 模版
树链剖分 模版#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:40:23    阅读次数:173
数组中只出现一次的数字
一个整型数组里除了两个数字之外,其他的数字都出现了两次。请写程序找出这两个只出现一次的数字。数字都出现两次,则异或肯定为0。考虑下这个题目的简化版——数组中除一个数字只出现1次外,其它数字都成对出现,要求尽快找出这个数字。根据异或运算的特点,直接异或一次就可以找出这个数字。现在数组中有两个数字只出现...
分类:编程语言   时间:2015-09-02 00:41:36    阅读次数:189
ThinkPHP学习笔记
一:入口文件ThinkPHP框架采用单一入口模式,拥有一个单一入口文件,一般是index.php文件,位于应用根目录下。入口文件必须要做的是载入框架入口文件,即ThinkPHP框架的入口文件。可选的操作包括定义系统级常量,定义调试模式或者部署模式,定义框架路径或者项目路径。二:自动生成在第一次访问入...
分类:Web程序   时间:2015-09-02 00:38:58    阅读次数:143
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:38    阅读次数:269
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:40:18    阅读次数:210
terminal常用快捷键
第一阶段:Ctrl+l 清屏Shift+Ctrl+C 复制Shift+Ctrl+V 粘贴Shift+Ctrl+N 打开新的终端窗口Shift+Ctrl+T 打开新的标签页Shift+Ctrl+PgUp/PgDn 标签页左右移Ctrl+PgUp/PgDn 切换标签页Ctrl+数字 切换到对应标签页Sh...
分类:其他好文   时间:2015-09-02 00:39:27    阅读次数:149
C# 发送邮件
Email类 public class Email { /// /// 发送者 /// public string mailFrom { get; set; } /// /// 收件人 //...
分类:Windows程序   时间:2015-09-02 00:39:27    阅读次数:183
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:39:58    阅读次数:1048
C/C++简介
在说C/C++之前先说下.net中间语言 .net中间语言其实也可以理解为,微软内部使用的一种语言,C#代码会被CLR转换为IL语言 如图,这就是IL语言,可以看到instance实例,构造函数ctor等甚至有些地方还能看到继承.没有什么地方像汇编吧,唯一的就是L_0000:ret有点点...
分类:编程语言   时间:2015-09-02 00:39:49    阅读次数:217
平衡二叉树
输入一棵二叉树,判断该二叉树是否是平衡二叉树。方法一:递归,每次求解left,right的深度然后做差判断。之后递归left&&right。 1 class Solution { 2 public: 3 bool IsBalanced_Solution(TreeNode* pRoot) { ...
分类:其他好文   时间:2015-09-02 00:37:12    阅读次数:185
百度Ueditor编辑器取消多图上传对话框中的图片搜索
百度Ueditor确实是一个非常强悍的编辑器,功能强大!但是实际开发需求复杂,总会有各种不符合要求的,比如想要取消多图上传的“图片搜索”选项卡(这个图片搜索真心难用)!以ueditor 1.4.3为例:1.打开ueditor1.4.3\dialogs\image\image.html2.删除第25行...
分类:Web程序   时间:2015-09-02 00:39:42    阅读次数:398
zabbix 安装
1、在已有的LAMP或者LNMP的基础上安装zabbix,安装一些依赖包:yum -y install mysql-devel libcurl-devel net-snmp-devel2、添加用户: groupadd zabbixuseradd zabbix -g zabbix3、创建数据库,添加授...
分类:其他好文   时间:2015-09-02 00:39:11    阅读次数:186
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:37:16    阅读次数:213
1416条   上一页 1 ... 70 71 72 73 74 75 76 ... 84 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!