Mr. Satyabrata has Published 355 Articles

Get the Most Frequent Element in an Array in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 14:42:43

21K+ Views

In Java, Array is a non-primitive data type which stores values of similar data type. As per the problem statement we have to detect which element is repeated maximum times in an array for maximum number of times and print its frequency. An array can contain duplicate values as well. ... Read More

How to Find the Union of Two Arrays in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 14:37:07

7K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find the union of two arrays. Union refers to joining together whereas union of arrays refers to the new array combining all unique ... Read More

Find the Middle Element of an array in JAVA

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 14:30:00

14K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find the element which is present in the middle of the array. If the array contains odd number of elements, then you will ... Read More

How to Find the Largest Palindrome in an Array in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 14:27:34

3K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find the largest palindrome in an array. A number is said to be a palindrome number if after reversing the same number it ... Read More

Find Count of Positive, Negative and Zero Elements in an Array in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 14:25:01

561 Views

In Java, Array is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find the frequency of each element i.e how many times each element is occurring in an array. Let’s see how we can do it by using the ... Read More

Find the Equilibrium Index of an array in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 14:22:04

1K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find an index such that the sum of elements at lower indexes is equal to the sum of elements at higher indexes and ... Read More

How to Find a Cumulative Sum Array in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 14:20:18

5K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data types. As per the problem statement we have to find a cumulative sum array which means array elements will be updated with the sum of the current element and all previous elements. ... Read More

How to Check if the Given Arrays are Disjoint in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 14:07:53

654 Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to check if the given arrays are disjoint. An array is said to be disjoint if two arrays have no element in common i.e. ... Read More

Find difference between first and second largest array element in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 12:42:16

2K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find the difference between the first largest and second largest number present in an array. Note − The array must be an integer ... Read More

Find sum of two array elements index wise in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 12:39:23

20K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find the sum of two different arrays with respect to index and store it into a third array. Suppose a1[] is first array, ... Read More

Advertisements