自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

长歌倚楼的学习记录

希望自己能成为一个技术不宅

  • 博客(11)
  • 收藏
  • 关注

原创 05-树8 File Transfer

05-树8 File TransferWe have a network of computers and a list of bi-directional connections. Each of these connections allows a file transfer from one computer to another. Is it possible to send a fi

2017-03-30 20:48:53 352

原创 05-树7 堆中的路径

将一系列给定数字插入一个初始为空的小顶堆H[]。随后对任意给定的下标i,打印从H[i]到根结点的路径。输入格式:每组测试第1行包含2个正整数NNN和MMM(≤1000\le 1000≤1000),分别是插入元素的个数、以及需要打印的路径条数。下一行给出区间[-10000, 10000]内的NNN个要被插入一个初始为空的小顶堆的整数。最后一行给出MMM个下标。输出格式:对输入

2017-03-30 15:39:56 237

原创 04-树4 是否同一棵二叉搜索树

#include #include #define ElementType inttypedef struct TNode *Position;typedef Position Tree;struct TNode{ ElementType Data; Tree Left; Tree Right; int flag;};Tree makeTree(in

2017-03-24 19:32:34 184

原创 04-树7 二叉搜索树的操作集

本题要求实现给定二叉搜索树的5种常用操作。函数接口定义:BinTree Insert( BinTree BST, ElementType X );BinTree Delete( BinTree BST, ElementType X );Position Find( BinTree BST, ElementType X );Position FindMin( BinTree BST )

2017-03-22 15:10:38 282

原创 03-树2. List Leaves (25)

03-树2. List Leaves (25)Given a tree, you are supposed to list all the leaves in the order of top down, and left to right.Input Specification:Each input file contains one test case. For each case

2017-03-21 20:57:32 300

原创 合并单向有序列表

#include #include typedef int ElementType;typedef struct Node *PtrToNode;typedef struct Node {    ElementType Data;    PtrToNode   Next;};typedef PtrToNode List;//链表指针List Read()

2017-03-21 01:06:02 276

原创 复习 数据结构 照着慕课来吧第一篇 最大子列和

#include /*第一种是穷举法,实际上是计算所有的子列求出其中的最大值*/int MaxSum(int a[],int N){int thisSum,Maxsum=0;int i,j,k;for(i=0;ifor(j=i;j{thisSum=0;for(k=i;kthisSum+=a[k];if(thisSum>Maxsum){

2017-03-20 20:04:56 313

原创 树莓派 超声波测距模块HC-SR04

首先一定要好好看看引脚图 +-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+ | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM | +-----+-----+--------

2017-03-17 17:34:03 7142 2

原创 树莓派 wringPi gpio控制

坑跌的淘宝,三个传感器能发五天实在忍不住了先配置下试试,手头还有几个led先下载安装wiringPi(一个集成的控制GOIO的库)sudo apt-get install git-coregit config --global user.name='"xxx"git config --global user.email=xx@xx.com没有git就去安装一下git

2017-03-16 17:30:09 501

原创 树莓派 开始的配置

是一般树莓派在装好系统后都要进行sd卡扩展,让他使用整个sd卡我用的是官方的系统sudo raspi-config选择第一项就好了 reboot 就扩展到整个sd卡ssh默认是开启的 不需要配置 连上你家的wifi以后手机上下载个路由器管家找到raspberrypi的ip地址就可以登录了然后在树莓派上安装个vsftp服务器具体方法看这个http://jingyan.

2017-03-15 19:30:08 331

原创 软件测试 功能测试 java求前一天

用java实现求前一天,用读取文件的方式读取当前时间 首先创建一个time.txt1996-3-11997-3-12005-11-102010-9-8然后创建一个文件读取类和一个键值对包装类(好吧,这个后来没用上因为发现不需要序号这个东西)package file;import java.io.BufferedReader;import java.io.File;import

2017-03-14 20:04:49 666

空空如也

空空如也

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

TA关注的人

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