摘要: 工作中遇到,备份一下方法。1. Ubuntu配置tftp Server(1) 安装TFTP软件sudo apt-get install tftp-hpa tftpd-hpa (tftp-hpa是客户端,tftpd-hpa是服务器端)(2) 建立tftpboot目录作为服务器的目录,并释放权限sudo... 阅读全文
posted @ 2015-12-24 18:40 LeviCode 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 1. 网络拓扑结构(Network Topology) 1. 公共总线拓扑结构( CommonBus Top ology):它们通过一根单总线(一束并行线)进行通信。每个设备通过相应的接口侦听总线,检查数据传输。如果接口判断出数据时送往它所服务的设备的,它就从总线上读取数据并传给设备。当一个设备有... 阅读全文
posted @ 2015-04-22 22:52 LeviCode 阅读(407) 评论(0) 推荐(0) 编辑
摘要: #### X86CPU的寄存器 EAX 累加器(Accumulator) EBX 基地址寄存器(Base Register) ECX 计数寄存器(Count Register) EDX 数据寄存器(Data Register) EBP 堆栈基指针(Base Pointer) ESI ED... 阅读全文
posted @ 2015-03-26 10:50 LeviCode 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 从3月2号开始一直在做实训的文件加密系统,一转眼系统的基本功能已经实现,全组都在集中精力搞文件驱动加密。在完成基本功能时,也遇到了很多问题,现把这段时间积累的笔记整理存档下。#### 检查指定目录是否存在函数原型: BOOL MakeSureDirectoryPathExists( PCSTR Di... 阅读全文
posted @ 2015-03-24 21:28 LeviCode 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 这道题来源于IBM power8算法挑战赛第三期,以下是给出的比赛规则:### 比赛规则* 由CSDN提供30万篇文章浏览记录(总计1000万次),用户需要将曝光次数最多的T0P100文章输出。* 参赛者可以使用任意基于Linux平台的开发语言完成挑战。* 参赛者提交的文件 第一列是id,第二列是出... 阅读全文
posted @ 2015-03-13 19:01 LeviCode 阅读(196) 评论(0) 推荐(0) 编辑
摘要: You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb... 阅读全文
posted @ 2015-03-09 19:17 LeviCode 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord... 阅读全文
posted @ 2014-09-21 16:51 LeviCode 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo... 阅读全文
posted @ 2014-09-18 13:44 LeviCode 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?思路:... 阅读全文
posted @ 2014-09-17 21:28 LeviCode 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal... 阅读全文
posted @ 2014-09-17 15:26 LeviCode 阅读(97) 评论(0) 推荐(0) 编辑