算法-查找
六月二十七
乘风破浪会有时,直挂云帆济沧海。
展开
-
查找-二分查找
图片: 文本: 二分查找: 非递归实现: public static int binarySearch(int []arr,int target){ int low=0; int hight=arr.length-1; int mid; while(low<=hight){ m...原创 2019-03-09 12:51:10 · 268 阅读 · 1 评论 -
链表-反转双向链表
//反转双向链表 public class DoubleNode{ public int value; public DoubleNode last; public DoubleNode next public DoubleNode(int data){ this.value=data; } } public DoubleNode reve...原创 2019-03-10 18:25:17 · 279 阅读 · 0 评论