Skip to content

Tag Archives: java-hashset

Given a number x, find it’s palindromic selfie number according to selfie multiplicative rule. If such a number doesn’t exist, then print “No such number… Read More
Prerequisite: Equals() and hashCode() methods in Java HashMap and HashSet use hashing to manipulate data. They use hashCode() method to check hash values. The default… Read More
Set in Java is an interface which extends Collection. It is an unordered collection of objects in which duplicate values cannot be stored. Basically, set is… Read More
As we know that a set is a well-defined collection of distinct objects. Each member of a set is called an element of the set.… Read More
The LinkedHashSet is an ordered version of HashSet that maintains a doubly-linked List across all elements. When the iteration order is needed to be maintained… Read More
The HashSet class implements the Set interface, backed by a hash table which is actually a HashMap instance. No guarantee is made as to the… Read More

Start Your Coding Journey Now!