栈(stack)、堆(heap)概念:堆和栈都是数据结构,是一个特殊的存储区,主要用来暂时存放数据和地址。栈:其同数据结构中的栈类似。用于存储参数和局部变量。该存储空间不用申请,有操作系统自动分配和释放。 栈在中文中就说一个仓库,所以类似仓库你先放进去的最后才能取出。也就类似先放进去的最后释放。.....
分类:
其他好文 时间:
2016-01-10 11:38:37
阅读次数:
145
允许传递一个类A的方法m给另一个类B的对象,使得类B的对象能够调用这个方法m,说白了就是可以把方法当作参数传递。 class Program { //delegate的使用方法一 public delegate void users(string name ,int...
分类:
其他好文 时间:
2016-01-10 11:39:23
阅读次数:
114
题目:Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level a...
分类:
其他好文 时间:
2016-01-10 11:40:19
阅读次数:
129
跟poj 2996反过来了,这里比较麻烦的就是处理白棋和黑棋各棋子对应的位置还有在最后打印棋盘式|,:,.的时候会有点繁琐(- - ACMer新手 );直接看代码吧; 1 #include 2 #include 3 #include 4 using namespace std; 5 char wh....
分类:
其他好文 时间:
2016-01-10 11:38:58
阅读次数:
161
http://www.esa.int/Our_Activities/Operations/ERS-2ERS-2ROLEEarth observation (EO)LAUNCH DATE21 Apr 1995LAUNCHER/LOCATIONAriane 4/Kourou, French Guiana...
分类:
其他好文 时间:
2016-01-10 11:36:58
阅读次数:
140
题目:Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tree...
分类:
其他好文 时间:
2016-01-10 11:37:16
阅读次数:
130
#import int main(int argc, const char * argv[]) { @autoreleasepool { //判断字符串是否有此前缀 NSString *str=@"IOS8-赵玉鑫.jpg"; BOOL result = [str hasPrefix...
分类:
其他好文 时间:
2016-01-10 11:35:54
阅读次数:
169
问题:找出二叉搜索树种第 k 小的元素。 一个深度遍历的应用。使用递归、或者借助栈都可以实现深度遍历。本文代码使用递归实现。
分类:
其他好文 时间:
2016-01-10 11:35:01
阅读次数:
154
在如今的项目中。须要做模糊搜索,在曾经技术的基础上非常快得完毕了第一版。大家先看看第一版的效果,我们一会做评论:0基础: 我们可能部分源代码(附件中会有所有源代码) 姓名性别 张山男 李四女 王五男 找六男...
分类:
其他好文 时间:
2016-01-10 11:37:29
阅读次数:
134
配置步骤:1 . vi /etc/init.d/nginx2. chkconfig --level nginx 2345 on --重点--------------------以下为nginx配置文件------------------#! /bin/sh# Default-Start: 2 3 4...
分类:
其他好文 时间:
2016-01-10 11:37:23
阅读次数:
108
题目:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / ...
分类:
其他好文 时间:
2016-01-10 11:34:47
阅读次数:
142
基本类型像基本的JavaScript一样,TypeScript支持numbers, strings, structures, boolean等基本类型,而扩展的enum等类型,为编程提供了更多帮助。Boolean这是最简单的类型var isDone: boolean = false;Number在J...
分类:
其他好文 时间:
2016-01-10 11:33:25
阅读次数:
136
1. 首先, 你的系统要能驱动无限网卡, 要是人品好的话, 系统已经自带了你的网卡的驱动程序. 不然就要先搞定无线网卡的驱动再说. 不然后面的步骤也就没必要了.2. 看一下你的无线网卡叫什么:iwconfig假设这一步我们得到的网卡名是 wlan03. 开启你的无线网卡:sudo ip link s...
分类:
其他好文 时间:
2016-01-10 11:33:26
阅读次数:
94
Longest Common Prefix:Write a function to find the longest common prefix string amongst an array of strings. 题意:查找一个字符串数组中的字符串的最长公共子序列。 思路:首先查找字符串数组中,...
分类:
其他好文 时间:
2016-01-10 10:29:45
阅读次数:
137
最近遇到了一些奇葩的的问题,搞了好半天才处理掉。今天就简单记录一下吧,以备不时之需。 问题描述: 在整合spring mvc项目的完成后,正常启动tomcat,发现tomcat启动成功了,但是访问本地localhost的时候,发现了404。 问题分析: 最开始以为自己请求的资源不存在...
分类:
其他好文 时间:
2016-01-10 10:29:34
阅读次数:
136
分布式系统实践1.Apache HBase 2015年发展回顾与未来展望https://mp.weixin.qq.com/s?__biz=MzAwMDU1MTE1OQ==&mid=403219545&idx=1&sn=119613ae7d52de9c033b3ed0598bae6a&scene=0&...
分类:
其他好文 时间:
2016-01-10 10:30:13
阅读次数:
246
题目: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...
分类:
其他好文 时间:
2016-01-10 10:28:58
阅读次数:
144