Implement Triplet class (or a 3-Tuple) in Java
A Triplet is a container to store a triplet of three objects. This post will discuss how to implement our own Triplet class in Java.
Ace your Coding Interview
Get hired by top tech companies with our comprehensive interview preparation.
Get StartedA Triplet is a container to store a triplet of three objects. This post will discuss how to implement our own Triplet class in Java.
This post will discuss how to create a sequential stream from an iterator in Java.
This article explores different ways to determine the current operating system from Kotlin programmatically.
This post will implement the Iterable interface on a Java class holding a collection of objects to iterate over the collection using the for-each loop.
This article explores different ways to convert an array to a set using Kotlin.
This article explores different ways to sort a map in Kotlin according to the natural ordering of its keys.
This post will discuss how to convert a byte array to string in Java.
This post will talk about ImmutableSet class by Guava in Java.
This post will check if two string arrays are equal or not in Java. The two string arrays are considered equal if both arrays have the same length and contain the same elements in the same order.
This article explores different ways to reverse a map in Kotlin.
This post will discuss several methods to increment a key’s value of a map in Java. If no mapping is present for the specified key in the map, map the key to a value equal to 1.
A MultiSet is a collection that can accommodate duplicate elements, unlike a Set. It does this by maintaining the total number of occurrences of each element in the collection.