自定义博客皮肤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)
  • 收藏
  • 关注

原创 2021-07-06

惠特斯通桥Wheatstone bridge用于测量未知电阻大小,STRAIN ​​ GAUGES中用惠特斯通桥来将应变值转换为电压平衡时

2021-07-06 22:03:40 68

原创 1108 Finding Average (20分)输入合法判断

The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input numbers might not be legal. A legal input is a real number in [−1000,1000] and is accurate up to no more th

2020-07-14 00:54:46 111

原创 1105 Spiral Matrix (25分) 螺旋矩阵模拟题

This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is filled in from the first element at the upper-left corner, then move in a clockwise spiral. The matrix has m rows and n columns

2020-07-12 02:36:56 245

原创 1102 Invert a Binary Tree (25分)树的遍历

题意理解给定以序号代表结点的二叉树,输出这个二叉树的反转层序遍历和反转中序遍历数据结构因为n个结点用序号0到n-1代表,所以考虑用相对于链表更加简单的静态链表来实现二叉树,即一个结构体数组。struct Node{ int left;//设置非法值为-1 int right;}BiTree[maxn];解题思路所谓反转二叉树就是原二叉树的左右镜像输入中未出现的结点便是根结点,需要设置一个数组来标记出现的结点,输入结束后遍历此数组,未被标记的结点即为根节点反转二叉树的层序.

2020-07-10 23:22:39 137

空空如也

空空如也

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

TA关注的人

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