Chinaunix首页 | 论坛 | 博客
  • 博客访问: 651787
  • 博文数量: 160
  • 博客积分: 2384
  • 博客等级: 大尉
  • 技术积分: 1366
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-01 11:35
文章分类
文章存档

2015年(45)

2014年(36)

2012年(28)

2011年(37)

2010年(2)

2009年(10)

2008年(2)

发布时间:2014-11-14 20:09:16

1. 二分查找算法循环实现int binarySearch(int *a, int len, int x) {    int low = 0;    int high = len-1;    int mid;    while (low <= high) { &n.........【阅读全文】

阅读(559) | 评论(0) | 转发(0)

发布时间:2014-11-13 23:29:27

1. 冒泡排序点击(此处)折叠或打开// test_manda.cpp : Defines the entry point for the console application.//#include "stdafx.h"void budleSort(int *a, int n);void testBubleSort(int *a, int len);.........【阅读全文】

阅读(971) | 评论(0) | 转发(1)

发布时间:2014-11-13 16:30:26

字体的设置在工具->选项->环境->字体和颜色。相信大家在用VS2010的时候都会觉得默认的字体不是很好看,尤其是看的时间长了以后,更是累眼睛,这里推荐一个字体,个人感觉像是加粗加圆滑版的,不过看起来确实会比原先的舒服一些。字体名字叫:Fixedsys Excelsior 3.01,下载地址:http://www.fixedsysexcelsior.co.........【阅读全文】

阅读(18032) | 评论(0) | 转发(0)

发布时间:2014-11-05 16:57:09

// 方法一, 循环实现ListNode* Merge(ListNode* pHead1, ListNode* pHead2){    if(pHead1 == NULL)        return pHead2;    else if(pHead2 == NULL)        return pHead1;    ListNode* pMergedHead = NULL;    ListNode*.........【阅读全文】

阅读(592) | 评论(0) | 转发(0)

发布时间:2014-11-05 13:55:20

// 方法一, 递归实现ListNode* ReverseList(ListNode* pHead){    return ReverseListRecursive(NULL,pHead); }// 返回反转后的头结点ListNode* ReverseListRecursive(ListNode* pPrev, ListNode* pNode){    // 空链表    if (pNode == NULL)    {&nb.........【阅读全文】

阅读(476) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册