abc_begin

导航

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页

2017年10月28日 #

UML类图

摘要: 之前自己常用如下方法建立类图 这是之前的方法,其实不应该这样,应该建立一个empty的project 选择model --> profile 选择C++ Profile和UML Standard Profile 把项目的名字改一下 右键点击,选择Add --> Model 改个名字 再改个名字,就默 阅读全文

posted @ 2017-10-28 12:14 LastBattle 阅读(546) 评论(0) 推荐(0) 编辑

2017年10月23日 #

170. Two Sum III - Data structure design【easy】

摘要: 170. Two Sum III - Data structure design【easy】 Design and implement a TwoSum class. It should support the following operations:add and find. add - Add 阅读全文

posted @ 2017-10-23 11:54 LastBattle 阅读(117) 评论(0) 推荐(0) 编辑

2017年10月22日 #

数据结构教程读书笔记_递归

摘要: 递归的定义 在定义一个过程或函数时,出现直接或者间接调用自己的成分,称之为递归。 若直接调用自己,称之为直接递归;若间接调用自己,称之为间接递归。 如果一个递归函数中递归调用语句是最后一条执行语句,则称这种递归调用为尾递归。 尾递归算法:可以用循环语句转换为等价的非递归算法 其他递归算法:可以通过栈 阅读全文

posted @ 2017-10-22 12:01 LastBattle 阅读(482) 评论(0) 推荐(0) 编辑

2017年10月21日 #

162. Find Peak Element

摘要: 162. Find Peak Element【medium】 A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a p 阅读全文

posted @ 2017-10-21 21:33 LastBattle 阅读(137) 评论(0) 推荐(0) 编辑

2017年10月15日 #

PILE读书笔记_进程环境

摘要: 进程是操作系统运行程序的一个实例, 也是操作系统分配资源的单位。 在Linux环境中, 每个进程都有独立的进程空间, 以便对不同的进程进行隔离, 使之不会互相影响。 atexit函数 atexit用于注册进程正常退出时的回调函数。 若注册了多个回调函数, 最后的调用顺序与注册顺序相反;类似于栈。 使 阅读全文

posted @ 2017-10-15 18:44 LastBattle 阅读(223) 评论(0) 推荐(0) 编辑

PILE读书笔记_标准I/O

摘要: 在学习和分析标准I/O库的同时, 可以重点与Linux的I/O系统调用进行比较。 stdin、 stdout和stderr都是FILE类型的文件指针, 是由C库静态定义的, 直接与文件描述符0、 1和2相关联, 所以应用程序可以直接使用它们。其中,stdin是不可写的, stdout是不可读的, 而 阅读全文

posted @ 2017-10-15 16:07 LastBattle 阅读(255) 评论(0) 推荐(0) 编辑

2017年10月14日 #

PILE读书笔记_文件I/O

摘要: open函数 参数说明: (1)pathname: 表示要打开的文件路径 (2)flags: 用于指示打开文件的选项,常用的有O_RDONLY、 O_WRONLY和O_RDWR,还有一些选项如下: O_APPEND: 每次进行写操作时, 内核都会先定位到文件尾, 再执行写操作 O_ASYNC: 使用 阅读全文

posted @ 2017-10-14 23:07 LastBattle 阅读(438) 评论(0) 推荐(0) 编辑

PILE读书笔记_基础知识

摘要: 程序的构成 Linux下二进制可执行程序的格式一般为ELF格式。 我们可以用readelf命令来读取二进制的信息。 ELF文件的主要内容就是由各个section及symbol表组成的。 下面来分别介绍这些字段的含义: .text:已编译程序的机器代码,为代码段, 用于保存可执行指令 。 .rodat 阅读全文

posted @ 2017-10-14 21:55 LastBattle 阅读(271) 评论(0) 推荐(0) 编辑

2. Add Two Numbers【medium】

摘要: 2. Add Two Numbers【medium】 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and 阅读全文

posted @ 2017-10-14 19:33 LastBattle 阅读(169) 评论(0) 推荐(0) 编辑

160. Intersection of Two Linked Lists【easy】

摘要: 160. Intersection of Two Linked Lists【easy】 Write a program to find the node at which the intersection of two singly linked lists begins. For example, 阅读全文

posted @ 2017-10-14 18:58 LastBattle 阅读(205) 评论(0) 推荐(0) 编辑

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页