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!

collections framework

Collection(s) and Collections Framework in Java

What is Collection ? A “collection” object sometimes called a container is simply an object that groups multiple elements into a single unit. Collections are used to store, retrieve, manipulate, and communicate aggregate data. Another meaning for “Collection” is it’s an… Read More!

least common element

How to Find Least Common Element in Unsorted Array

Given an unsorted array as an input, the goal is to find least common element or lest frequent element or least repeating element in the array. Let’s solve this problem using the following methods i.e., Method 1: Sorting and Linear Traversal and Method… Read More!