随笔分类 -  算法与数据结构

摘要:代码如下 /** * 快速排序 * @param arr 目标数组 * @param left 排序的起始索引 * @param right 排序的末尾索引 */ private static void quickSort(int[] arr, int left, int right) { //递归 阅读全文
posted @ 2021-03-12 19:30 youngyajun 阅读(68) 评论(0) 推荐(0)
摘要:public class MD4 { private static int A, B, C, D; private static int X[] = new int[16]; private static int F(int X, int Y, int Z) { return (X & Y) | ( 阅读全文
posted @ 2020-07-23 14:31 youngyajun 阅读(220) 评论(0) 推荐(0)
摘要:实现如下: public class BitMap { //用于记录数据是否存在(类似记录表) private byte[] bits; //容量,即要对多少对象进行bitmap操作 private int capacity; public BitMap(int capacity){ this.ca 阅读全文
posted @ 2020-07-16 16:29 youngyajun 阅读(838) 评论(0) 推荐(1)