Rudradev Das has Published 79 Articles

Collections.reverseOrder() in Java with Examples

Rudradev Das

Rudradev Das

Updated on 27-Dec-2023 17:43:20

104 Views

Collections reverse order class is a reverse order method, which is encoded in the collections class. It is present in the java.util package. It returns a comparator as a result, which is a predefined comparator in nature. By using this comparator package, we can rearrange the collections of a particular ... Read More

Given two numbers as strings, find if one is a power of other

Rudradev Das

Rudradev Das

Updated on 27-Dec-2023 17:26:59

138 Views

Assume we have a data set of some numbers as a string and denoted as str[]. Now the task is to multiply the two large numbers which represents a string here. We need to find out from those two numbers as strings, find if one is a power of other. ... Read More

Palindrome by swapping only one character

Rudradev Das

Rudradev Das

Updated on 27-Dec-2023 17:23:08

90 Views

In a C++ environment, the palindrome is a process where a set or string remains same from the intial stage of the process to termination of that same particular process. Assume, we have a string denoted as the str[]. And the task is to check the string will be paindrome ... Read More

Print reverse string after removing vowels

Rudradev Das

Rudradev Das

Updated on 27-Dec-2023 17:18:14

112 Views

The reverse() is a pre-installed and predefined header file, which is used to define as a template in a process in a C++ environment. The method is able to reverse the elements from last to first manner in a range for any value container. For this process the time complexity ... Read More

Program to reverse a string (Iterative and Recursive)

Rudradev Das

Rudradev Das

Updated on 27-Dec-2023 17:14:39

111 Views

The reverse() is a pre-installed and predefined header file, which is used to define as a template in a process in a C++ environment. The method is able to reverse the elements from last to first manner in a range for any value container. For this process the time complexity ... Read More

Count palindromic characteristics of a String

Rudradev Das

Rudradev Das

Updated on 27-Dec-2023 17:04:09

34 Views

In a C++ environment, the palindrome is a characteristics where we get the same value after getting the result. Assume, there is a string denoted as S and the length is N. Now we need to run an operation on that string to find the palindromic characteristic is the number ... Read More

Difference between HashMap and IdentityHashMap in Java

Rudradev Das

Rudradev Das

Updated on 02-Nov-2023 18:20:39

126 Views

HashMap and IdentityHashMap are the key value data sets which are used to access the key data pairs. More specifically. A HashMap is a Java collection framework which provides the functionality of a proper hash table data set. The map stores the element value as a key or pairs which are ... Read More

Difference Between Hashtable and Synchronized Map in Java

Rudradev Das

Rudradev Das

Updated on 02-Nov-2023 18:18:26

196 Views

A HashTable is a compact abstract data set which converts the keys of a map to the values by computing the indexes into an array of slots to enable faster data access. On the other hand, a synchronized map is a Java collection class which is mainly used to synchronize ... Read More

Difference Between IdentityHashMap, WeakHashMap, and EnumMap in Java

Rudradev Das

Rudradev Das

Updated on 02-Nov-2023 17:58:08

230 Views

The IdentityHashMap is a special type of hash class by which we handle the rare cases related to the reference-equality. This map compares the keys by using a " = = " operator where the normal hashmap uses the " equals " method for this. A Weak HashMap is a ... Read More

Difference and similarities between HashSet , LinkedHashSet and TreeSet in Java

Rudradev Das

Rudradev Das

Updated on 02-Nov-2023 17:50:59

172 Views

The HashSet, LinkedHashSet and TreeSet are the set interface class mainly used to store the elements. HashSet − A HashSet is a container instance which stores the unique elements only in a non synchronized manner to handle the high-performance operations involving with the set. The set allows the null values which ... Read More

Advertisements