![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
人不负青山
这个作者很懒,什么都没留下…
展开
-
快速幂笔记
快速幂原创 2022-10-27 22:57:58 · 77 阅读 · 0 评论 -
图的基础概念
自学笔记原创 2022-07-30 17:20:43 · 2765 阅读 · 0 评论 -
写一个函数,实现一个整形有序数组的二分查找
//写一个函数,实现一个整形有序数组的二分查找//找到了就返回下标//找不到返回-1#include<stdio.h>int binary_search(int arr[], int k,int sz){ int left = 0; int right = 0; while (left <= right) { int mid = (left + right) / 2; if (arr[mid] < k) ...原创 2021-12-24 16:13:11 · 338 阅读 · 0 评论