Mr. Satyabrata has Published 387 Articles

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

Mr. Satyabrata

Mr. Satyabrata

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

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 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

359 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

3K+ 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

454 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

How to Check if an Array is Empty or Not in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 13:45:12

13K+ 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 an array is empty or not. An array is said to be an empty array, if the array has zero element ... 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

17K+ 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

Find count of positive and negative array elements in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 12:37:04

6K+ 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 count of positive numbers, negative numbers and zero present in the given array. Any number which is greater than zero that is called as positive number, ... Read More

Find Angle while Angle by similar Chord at center in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 05-Jan-2023 12:33:22

83 Views

A circle is a round shape two-dimensional diagram that has no corners. Every circle has an origin point and every point on the circle maintains an equal distance from the origin. The distance between the origin and a point in a circle is known as the Radius of the circle. ... Read More

Advertisements