鲫鱼鲫鱼
码龄5年
关注
提问 私信
  • 博客:7,638
    7,638
    总访问量
  • 31
    原创
  • 1,144,047
    排名
  • 1
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:江苏省
  • 加入CSDN时间: 2020-06-17
博客简介:

m0_48725491的博客

查看详细资料
个人成就
  • 获得3次点赞
  • 内容获得0次评论
  • 获得5次收藏
创作历程
  • 35篇
    2020年
成就勋章
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

仅用位运算实现加减乘除

import java.util.Arrays;public class 位运算 { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(add(12, 15)); System.out.println(subs(12, 15)); System.out.println(mult(14, 5)); System.out.println(Arra
原创
发布博客 2020.09.28 ·
146 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

predicate/Stream操作集合

/** * 操作集合 */import java.util.Collection;import java.util.HashMap;import java.util.function.Predicate;import java.util.function.ToIntFunction;public class Test_Collection { public static void main(String[] args) { HashMap<Integer, S
原创
发布博客 2020.09.21 ·
262 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

RadixSort

import java.util.ArrayList;import java.util.List;import java.util.Arrays;import java.util.Random;public class RadixSort { /* * Radix sort an array of Strings * Assume all are all ASCII * Assume all have same length */ publ.
原创
发布博客 2020.09.07 ·
177 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

QuickSort/QuickSelect-双指针nb

/** * 填坑法实现简易版本,实现好像和下面的一样?? */import java.util.Arrays;import java.util.Random;public class BinarySort { public static void main(String[] args) { int[] arr = new int[20]; for (int i = 0; i < arr.length; i++) { arr.
原创
发布博客 2020.09.07 ·
201 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

mergeSort

/** * 填坑法实现,不需要借助额外数组 */import java.util.Arrays;import java.util.Random;public class BinarySort { public static void main(String[] args) { int[] arr = new int[80]; for (int i = 0; i < arr.length; i++) { arr[i] = n.
原创
发布博客 2020.09.06 ·
149 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

shellsort and heapsort

public static void main(String[] args) { int[] ar = {1, 4, 3, 5, 7, 11, 9, 10, 0, 1, 6, 3, 5, 4, 8}; heapsort(ar); System.out.println(Arrays.toString(ar)); } public static void shellsort(int[] a) { for (int gap ...
原创
发布博客 2020.09.05 ·
133 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

BinomialQueue

package heap;// BinomialQueue class//// CONSTRUCTION: with no parameters or a single item//// ******************PUBLIC OPERATIONS*********************// void insert( x ) --> Insert x// Comparable deleteMin( )--> Return and remove smallest
原创
发布博客 2020.09.05 ·
293 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeftistHeap

package heap;// LeftistHeap class//// CONSTRUCTION: with a negative infinity sentinel//// ******************PUBLIC OPERATIONS*********************// void insert( x ) --> Insert x// Comparable deleteMin( )--> Return and remove smallest ite
原创
发布博客 2020.09.05 ·
159 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

UnderfolwException

package heap;/** * Exception class for access in empty containers * such as stacks, queues, and priority queues. * @author Mark Allen Weiss */public class UnderflowException extends RuntimeException{}
原创
发布博客 2020.09.05 ·
151 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

BinaryHeap

package heap;// BinaryHeap class//// CONSTRUCTION: with optional capacity (that defaults to 100)// or an array containing initial items//// ******************PUBLIC OPERATIONS*********************// void insert( x ) --> Insert
原创
发布博客 2020.09.05 ·
173 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

HashFamily

package hash;interface HashFamily<AnyType>{ int hash( AnyType x, int which ); int getNumberOfFunctions( ); void generateNewFunctions( );}import hash.HashFamily;import java.util.Random;public class StringHashFamily implements Has
原创
发布博客 2020.09.05 ·
222 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

CuckooHashTableClassic

package hash;import java.util.HashSet;// Cuckoo Hash table class//// CONSTRUCTION: a hashing function family and// an approximate initial size or default of 101//// PUBLIC OPERATIONS***// bool insert( x ) --> Insert x// bool
原创
发布博客 2020.09.05 ·
121 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

CuckooHashTable

package hash;import java.util.Random;// Cuckoo Hash table class//// CONSTRUCTION: a hashing function family and// an approximate initial size or default of 101//// PUBLIC OPERATIONS***// bool insert( x ) --> Insert x// bool
原创
发布博客 2020.09.05 ·
357 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

跳房子散列

https://www.cnblogs.com/dhcao/p/10568822.html
转载
发布博客 2020.09.03 ·
229 阅读 ·
1 点赞 ·
0 评论 ·
1 收藏

MyArrayList

package list;public class MyArrayList<AnyType> implements Iterable<AnyType>{ /** * Construct an empty ArrayList. */ public MyArrayList( ) { doClear( ); } /** * Returns the number of items in th
原创
发布博客 2020.09.02 ·
162 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

MyLinkedList

package list;/** * LinkedList class implements a doubly-linked list. */public class MyLinkedList<AnyType> implements Iterable<AnyType> { /** * Construct an empty LinkedList. */ public MyLinkedList() { doClear();
原创
发布博客 2020.09.02 ·
364 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

SplayTree

package tree;// SplayTree class//// CONSTRUCTION: with no initializer//// ******************PUBLIC OPERATIONS*********************// void insert( x ) --> Insert x// void remove( x ) --> Remove x// boolean contains( x ) --> Retu
原创
发布博客 2020.09.02 ·
99 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

BinarySearchTree

package tree;// BinarySearchTree class//// CONSTRUCTION: with no initializer//// ******************PUBLIC OPERATIONS*********************// void insert( x ) --> Insert x// void remove( x ) --> Remove x// boolean contains( x ) --&g
原创
发布博客 2020.09.02 ·
111 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

AVLTree

package tree;// AvlTree class//// CONSTRUCTION: with no initializer//// ******************PUBLIC OPERATIONS*********************// void insert( x ) --> Insert x// void remove( x ) --> Remove x (unimplemented)// boolean contains( x
原创
发布博客 2020.09.02 ·
85 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

QuadraticProbingHashTable

package hash;// QuadraticProbing Hash table class//// CONSTRUCTION: an approximate initial size or default of 101//// ******************PUBLIC OPERATIONS*********************// bool insert( x ) --> Insert x// bool remove( x ) --> R
原创
发布博客 2020.09.02 ·
328 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏
加载更多