All Questions
7 questions
2votes
2answers
5kviews
Splitting Hashmap by converting to TreeMap
I have a project requirement where I have to split a HashMap of around 60-70 entries into multiple HashMaps. The critical number of the split is 30 due to ...
3votes
1answer
1kviews
B-tree based map in Java
I have this B-tree based map in Java: BTreeMap.java ...
2votes
0answers
2kviews
HashMap with binary search tree for chaining
My friend was asked to implement a hashtable with a binary search tree. I tried practicing it myself, and it turned out to be very verbose. I need suggestions to clean this up! ...
2votes
1answer
827views
Finding numbers divisible by primes in a given range
The problem statement (Codeforces# 385C) is this: We are given a sequence of \$n\$ numbers, i.e. \$x_i\$ and \$m\$ queries to find how many of these are divisble by primes between two given numbers (...
5votes
0answers
369views
Van Emde Boas tree -based map in Java [duplicate]
(Follow-up question: Improved Van Emde Boas tree based map in Java) For the experimental part of my MSc thesis I was working on van Emde Boas tree, and I have this: ...
5votes
2answers
3kviews
Hash Binary Tree Map
I made a map based on a binary tree ordered by hashcodes, with collisions fixed with equals(). Are there any improvements I could make? ...
1vote
1answer
805views
Max depth of tree when all parent pointers are provided
Request for optimization, good practices, recommendations. ...