首页 > 其他
31: 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 th.....
分类:其他   时间:2015-01-27 23:14:32    收藏:0  评论:0  赞:0  阅读:321
Lesson(DynamicMerry)动态内存分配
// main.m// 1-27随堂笔记//讲师: 小辉//笔者: 王学文// Created by lanouhn on 15/1/27.// Copyright (c) 2015年 lanouhn. All rights reserved.//动态内存分配(DynamicMerry)#impor...
分类:其他   时间:2015-01-27 23:14:12    收藏:0  评论:0  赞:0  阅读:362
什么是句柄?为什么会有句柄?HANDLE
什么是句柄?为什么会有句柄?HANDLE今天学习Android,看到一个unix函数不明白,但返回值是handle,查了查意思,是句柄的意思,那什么是句柄呢,从网上搜了一些答案,觉得这篇文章比较好,个人认为比wiki的都要讲的好。简而言之,句柄是一种抽象的思想:隐藏了内核实现的细节同时为调用提供了方...
分类:其他   时间:2015-01-27 23:13:22    收藏:0  评论:0  赞:0  阅读:343
File Input and Output
Assume ifle and ofile is the string object storing the names of input and output files' names.string ifile = "inputFile.txt";string ofile = "outputFil...
分类:其他   时间:2015-01-27 23:13:12    收藏:0  评论:0  赞:0  阅读:414
36: Same Tree
/************************************************************************/ /* 36: Same Tree */ /****************************************************.....
分类:其他   时间:2015-01-27 23:13:02    收藏:0  评论:0  赞:0  阅读:338
Count and Say
Count and SayThe count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is r...
分类:其他   时间:2015-01-27 23:12:22    收藏:0  评论:0  赞:0  阅读:376
bzoj3767 A+B Problem加强版
DescriptionInput输入A,BOutput输出A+B。Sample Input1 1Sample Output2HINT对于100%的数据,保证 |A| , |B| 不会超过10^(10^7)呃……高精a+b和a-b的模板题没啥技术含量的……我还以为会有什么--0之类的出现#includ...
分类:其他   时间:2015-01-27 23:12:02    收藏:0  评论:0  赞:0  阅读:748
Apatana的安装
第一种配置方式:1.解压Eclipse2.在任意目录下,推荐就在Eclipse安装目录下(注意安装目录不包含中文空格)新建一个myplugins(随便起名)文件夹,再新建一个文件夹aptana(随便起),在apatana文件夹中创建一个文件夹eclipse(固定名字),将aptana相关的两个文件夹...
分类:其他   时间:2015-01-27 23:11:52    收藏:0  评论:0  赞:0  阅读:391
awk的些许小技巧
一句话kill掉名为navimain的process(利用awk的列操作能力)kill -15 `ps|grep navimain | awk 'NR==1 {print $1}'`
分类:其他   时间:2015-01-27 23:11:42    收藏:0  评论:0  赞:0  阅读:333
很多网络库介绍
1. ACE - Adaptive Communication Environmenthttp://www.cs.wustl.edu/~schmidt/ACE.html2. Common G++ (GNU)http://www.gnu.org/software/commoncpp/3. Socket...
分类:其他   时间:2015-01-27 23:11:32    收藏:0  评论:0  赞:0  阅读:376
37: Symmetric Tree
/************************************************************************/ /* 37: Symmetric Tree */ /***********************************************.....
分类:其他   时间:2015-01-27 23:11:22    收藏:0  评论:0  赞:0  阅读:348
makefile基础
1、除了开头的依赖关系,后面的命令行每行需要用TAB开头2、注释,C是/* */或//,汇编是@, makefile是#3、makefile中使用变量:在最开始(依赖关系前)加上,例如:objects=a.o b.o c.o d.o e.o ,引用是需要$(变量)形式,例如:$(objects),直...
分类:其他   时间:2015-01-27 23:10:22    收藏:0  评论:0  赞:0  阅读:318
[翻译] PTEHorizontalTableView
PTEHorizontalTableViewHorizontal UITableView inspired byEasyTableView.水平滚动的UITableView,灵感来自于EasyTableView.Features - 特点PTEHorizontalTableView wraps aU...
分类:其他   时间:2015-01-27 23:09:52    收藏:0  评论:0  赞:0  阅读:346
节省内存小习惯
原文:http://blog.csdn.net/a396901990/article/details/38707007开发上的小习惯,聚沙成塔1.对常量使用static final修饰符2.静态方法代替虚拟方法如果不需要访问某对象的字段,将方法设置为静态,调用会加速15%到20%。这也是一种好的做法...
分类:其他   时间:2015-01-27 23:09:42    收藏:0  评论:0  赞:0  阅读:466
Maven整理笔记のMaven仓库
Maven坐标和依赖是任何一个构件在Maven世界中的逻辑表示方式;而构件的物理表示方式是文件,Maven通过仓库来统一管理这些文件。 Maven仓库 在Maven的世界中,任何一个依赖、插件或者项目构建的输出,都可以称为一个构件。如项目依赖log4j-1.2.15.jar是一个构件,插件...
分类:其他   时间:2015-01-27 23:09:32    收藏:0  评论:0  赞:0  阅读:408
控制器
UITabBarController UINavigationController1,一个导航控制器,对应于一个视图控制器2,标签控制器式是管理的几个视图控制器,子控制器是并列的。每一个分栏控制器只有一个UITabBar视图,用于显示UITabBarItem实例,UITabBarItem由当前的视....
分类:其他   时间:2015-01-27 23:09:22    收藏:0  评论:0  赞:0  阅读:378
pthread_join/pthread_exit的使用方法解析
官方说法:函数pthread_join用来等待一个线程的结束。函数原型为: extern int pthread_join __P ((pthread_t __th, void **__thread_return)); 第一个參数为被等待的线程标识符,第二个參数为一个用户定义的指针,它能够用来存.....
分类:其他   时间:2015-01-27 23:09:02    收藏:0  评论:0  赞:0  阅读:368
[leetcode]Next Permutation
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possibl...
分类:其他   时间:2015-01-27 23:08:52    收藏:0  评论:0  赞:0  阅读:310
UIScrollView相关问题(计算分页)
- (void)scrollViewDidScroll:(UIScrollView *)scrollView{ //每页宽度 CGFloat pageWidth = scrollView.frame.size.width; //根据当前的坐标与页宽计算当前页码 int ...
分类:其他   时间:2015-01-27 23:08:32    收藏:0  评论:0  赞:0  阅读:330
HashMap和HashSet的源代码分析
static final int DEFAULT_INITIAL_CAPACITY = 1 [] EMPTY_TABLE = {}; //就比较用的 transient Entry[] table = (Entry[]) EMPTY_TABLE;//Entry数组,存放数据的地方 int...
分类:其他   时间:2015-01-27 23:08:22    收藏:0  评论:0  赞:0  阅读:318
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!