随笔分类 -  java

摘要:// 快排,双指针挖坑,交互,分治法 public void quickSort (int[] array,int low, int height) { if(low >= height) { return; } int left = low, right = height; int base = 阅读全文
posted @ 2021-04-22 15:49 fosonR 阅读(57) 评论(0) 推荐(0)
摘要:二分查找,从已排序的数组中查找目标值的下标,找不到返回-1 每次折半,比中间值少从低位遍历,比中间值大从高位遍历,等于中间值返回mid下标。 中间值等于低位开始值,说明找不到,返回-1。 package com.test import org.junit.jupiter.api.Test; /** 阅读全文
posted @ 2021-04-16 17:51 fosonR 阅读(75) 评论(0) 推荐(0)
摘要:1.1配置mybatis全局文件mybatis-config.xml 阅读全文
posted @ 2019-04-23 11:47 fosonR 阅读(11804) 评论(0) 推荐(0)