二分搜索边界判断
取下边界,最左边的值
取大于等于target的值,左边界取l=mid+1时,中间值需要向下取整。
如果目标值不在搜索范围,则取比目标值大的值的最左界。
int findLower(int[] nums,int target)
{
int l=0,r=nums.length-1;
while(l<r){
int mid=l+(r-l)/2;
if(nums[mid]>=target){
r=mid;
}
else{
l=mid+1;
}
}
return l;
}
java的基础概念
java基本概念待补充
集合
本节里面的图使用的是UML图,可以通过知乎上的一篇文章(30分钟学会UML)对UML有一个了解。
其中关系图如下: 图片暂缺
集合框架
图片暂缺
Java 集合框架主要包括两种类型的容器,一种是集合(Collelection),存储一个元素集合,另一种是图(Map),存储键/值对映射。Collection 接口又有 3 种子类型,List、Set 和 Queue,再下面是一些抽象类,最后是具体实现类,常用的有 ArrayList、LinkedList、HashSet、LinkedHashSet、HashMap、LinkedHashMap 等等。
Redis相关
标题 2
这里是内容。
标题 3
这里是内容。
开发框架
标题 2
这里是内容。
标题 3
这里是内容。
数据库
标题 2
这里是内容。
标题 3
这里是内容。
收集的知识链接
标题 2
这里是内容。
标题 3
这里是内容。
基础模式 健康探针
2.3 Health Probe
2.3 健康探针
The Health Probe pattern is about how an application can communicate its health state to Kubernetes. To be fully automatable, a cloud-native application must be highly observable by allowing its state to be inferred so that Kubernetes can detect whether the application is up and whether it is ready to serve requests. These observations influence the lifecycle management of Pods and the way traffic is routed to the application.
基础模式-可预测的需求
2.1 Predictable Demands
2.1 可预测的需求
The foundation of successful application deployment, management, and coexistence on a shared cloud environment is dependent on identifying and declaring the application resource requirements and runtime dependencies. This Predictable Demands pattern is about how you should declare application requirements, whether they are hard runtime dependencies or resource requirements. Declaring your requirements is essential for Kubernetes to find the right place for your application within the cluster.