2015年10月26日

Buffer Overflow

摘要: 本实验是关于缓冲区溢出的原理以及如何利用缓冲区溢出漏洞进行攻击,分为以下十个练习: Part A:buffer overflow principalExercise1:output 3 addressesExercise2:use gdbExercise3:turn off ASLR and ... 阅读全文

posted @ 2015-10-26 13:37 louwqtc 阅读(3271) 评论(1) 推荐(0) 编辑

2015年10月3日

Add Two Numbers

摘要: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ... 阅读全文

posted @ 2015-10-03 22:57 louwqtc 阅读(140) 评论(0) 推荐(0) 编辑

Two Sum

摘要: Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu... 阅读全文

posted @ 2015-10-03 20:47 louwqtc 阅读(156) 评论(0) 推荐(0) 编辑

2015年9月4日

堆数据结构

摘要: 以下是小根堆定义,包括向堆中插入元素,删除堆中元素,建立新堆,调整堆等函数。typedef int Elemtype;class MinHeap{public: MinHeap() :elem(0), size(0){} void BuildMinHeap(vector v); v... 阅读全文

posted @ 2015-09-04 13:03 louwqtc 阅读(184) 评论(0) 推荐(0) 编辑

排序

摘要: 下面是几种内部排序算法:1.冒泡排序;2.插入排序;3.希尔排序;4.堆排序;5.归并排序;6.快速排序。没有什么排序算法能做到在任何时候都是最好的排序算法。下面是各排序算法的C语言实现:typedef long int Elemtype;void swap(long int *a,long int... 阅读全文

posted @ 2015-09-04 12:55 louwqtc 阅读(138) 评论(0) 推荐(0) 编辑

2015年7月27日

求解斐波那契数列的第n项

摘要: 斐波那契数列几种算法的比较 阅读全文

posted @ 2015-07-27 20:56 louwqtc 阅读(1472) 评论(0) 推荐(0) 编辑

冒泡排序

摘要: 冒泡排序 阅读全文

posted @ 2015-07-27 13:15 louwqtc 阅读(179) 评论(0) 推荐(0) 编辑

排列与组合

摘要: 排列与组合的基础知识 阅读全文

posted @ 2015-07-27 12:02 louwqtc 阅读(288) 评论(0) 推荐(0) 编辑

导航