摘要: 面试的毒瘤 #include<stdio.h>#include<stdlib.h>#include<string.h> #define N 105 struct TreeNode{ int val; TreeNode* left; TreeNode* right;}; TreeNode *queue 阅读全文
posted @ 2019-03-12 18:53 stone531 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 前言: hashmap是一种很常用的数据结构,其使用方便快捷,接下来笔者将给大家深入解析这个数据结构,让大家能在用的时候知其然,也知其所以然。 一.Map 首先,从最基本的讲起,我们先来认识一下map是个什么东西。在我们写程序的时候经常会遇到数据检索等操作,对于几百个数据的小程序而言,数据的存储方式 阅读全文
posted @ 2019-03-12 18:26 stone531 阅读(300) 评论(0) 推荐(0) 编辑
摘要: // server#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include"time.h... 阅读全文
posted @ 2015-09-04 22:35 stone531 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 没有笔试。1. sendmessage,postmessage区别。2. socket 同步通信和异步通信的主要区别。方法参数如何使用。3. windows 消息机制。4. 0x00005 报错的具体原理。5. control activite 的主要步骤Windows I/O模型、同步/异步、阻塞... 阅读全文
posted @ 2015-07-07 23:44 stone531 阅读(168) 评论(0) 推荐(0) 编辑
摘要: linux文件系统是Linux系统的心脏部分,提供了层次结构的目录和文件。文件系统将磁盘空间划分为每1024个字节一组,称为块(也有用512字节为一块的,如:SCOXENIX)。编号从0到整个磁盘的最大块数。 全部块可划分为四个部分,块0称为引导块,文件系统不用该块;块1称为专用块,专用块含有许多信... 阅读全文
posted @ 2015-06-24 00:03 stone531 阅读(4068) 评论(0) 推荐(0) 编辑
摘要: 大致总结了一下linux下各种格式的压缩包的压缩、解压方法。但是部分方法我没有用到,也就不全,我将随时修改完善!.tar解包:tar xvf FileName.tar打包:tar cvf FileName.tar DirName(注:tar是打包,不是压缩!)--------------------... 阅读全文
posted @ 2015-06-14 17:21 stone531 阅读(147) 评论(0) 推荐(0) 编辑
摘要: String 类的原型如下class String{ public: String(const char *str=NULL);//构造函数 String(const String &other); //拷贝构造函数 ~String(void); //析构函数 String& operator=(c... 阅读全文
posted @ 2015-06-07 23:41 stone531 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 先遍历二叉树的左子树的深度,然后再遍历二叉树右子树的深度。最后判断左子树和右子树的深度,如果左子树比右子树深则返回左子树深度+1,否则返回右子树深度+1。/*初始条件:二叉树T存在。操作结果:返回T的深度*/intBiTreeDepth(BiTreeT){inti,j;if(!T)return0;i... 阅读全文
posted @ 2015-06-07 23:35 stone531 阅读(577) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-06-07 08:18 stone531 阅读(1) 评论(0) 推荐(0) 编辑