set interface

The Java Set Interface, Implementations and Examples

The Set interface is a collection that cannot contain duplicate elements. It models the mathematical set abstraction and is used to represent sets like below Cards comprising a poker hand Courses making up the schedule of a student The processes running… Read More!

find common elements

Programs to Find Common Elements between Two Unsorted Arrays

Given set of two unsorted arrays as input, the goal is to find common elements between them in an efficient way. Let’s solve this problem using the following methods i.e., Method 1: Iterative approach, Method 2: Using HashSet and Method 3:… Read More!