自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 前缀表达式转后缀表达式的链栈实现

Infix to PostFix (stack -- Linked List Implementation) 预备知识: 栈:限定仅在表尾进行插入和删除,后进先出 Stack Model typedef char StackElementType; typedef struct stackNode *Stack; struct stackNode{ StackElementType

2017-10-23 10:50:32 1453

原创 二分查找 (循环、递归两种方法)

二分查找 (binary search) 循环实现 int BinarySearch(int *a,int len,int target) { int low,high,mid; low=0; high=len-1; while (low<=high) { mid=(low+high)/2; if (a[mid]==target)

2017-10-23 10:35:54 267

原创 数组的链表实现:创建(头插/尾插)、打印、删除、插入

链表操作

2017-10-17 07:35:11 295

原创 用迭代和递归分别计算1+2+3+...+n

Using interation and recursion to accumulaterucursivePoint: f(n)=n+f(n-1) The function call itself until n==1, so we should judge when is the time that we have to stop call itself. Then, we haveif (n

2017-01-30 14:47:47 2103

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除