摘要: Future<T>是一种任务,可以使用CompleteFuture<T>代替Future<T>。 CompleteFuture<T>的介绍: https://blog.csdn.net/qq_34562093/article/details/90209520 https://www.cnblogs. 阅读全文
posted @ 2024-05-24 11:31 _titleInfo 阅读(12) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_41765777/article/details/128428946 阅读全文
posted @ 2024-05-24 09:37 _titleInfo 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 二分查找的写法(有两种,这里只记录第一种): 如果区间是[a,b],即可以取到low、high,则mid=(low+high)/2: 1.while(low <= high){..},注意此处是" <= " 2.if(v[mid] < target){low ++;} 3.if(v[mid] > t 阅读全文
posted @ 2024-05-24 09:08 _titleInfo 阅读(2) 评论(0) 推荐(0) 编辑
//雪花飘落效果