摘要: 自学51单片机 - 动态数码管实验 1、程序2、结果 1、程序 #include "reg52.h" typedef unsigned int uint16; //对系统默认数据类型进行重定义 typedef unsigned char uint8; #define SMG_A_DP_PORT P0 阅读全文
posted @ 2022-04-07 21:50 Dancing-Pierre 阅读(44) 评论(0) 推荐(0)
摘要: [Golang]力扣Leetcode - 35. 搜索插入位置(二分查找) 题目:给定一个排序数组和一个目标值,在数组中找到目标值,并返回其索引。如果目标值不存在于数组中,返回它将会被按顺序插入的位置。 请必须使用时间复杂度为 O(log n) 的算法。 链接: 力扣Leetcode - 35. 搜 阅读全文
posted @ 2022-04-07 17:15 Dancing-Pierre 阅读(29) 评论(0) 推荐(0)
摘要: [Golang]力扣Leetcode - 852. 山脉数组的峰顶索引(二分查找) 题目:符合下列属性的数组 arr 称为 山脉数组 : arr.length >= 3存在 i(0 < i < arr.length - 1)使得: arr[0] < arr[1] < … arr[i-1] < arr 阅读全文
posted @ 2022-04-07 09:35 Dancing-Pierre 阅读(11) 评论(0) 推荐(0)