Mr. Satyabrata has Published 355 Articles

Find Mean and Median of an unsorted Array in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 31-Jan-2023 17:45:00

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 mean and median of an unsorted array in Java. Mean of an array can be derived by calculating the average value of ... Read More

How to Alter Two Array Elements in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 31-Jan-2023 17:22:56

17K+ Views

An array is a linear data structure in which elements are stored in contiguous memory locations. As per problem statement, we have to alter two array elements with each other. Altering two array elements in other words can also be called swapping or exchanging two elements with each other Let’s ... Read More

How Java is Helpful for Artificial Intelligence (AI)?

Mr. Satyabrata

Mr. Satyabrata

Updated on 31-Jan-2023 17:14:53

7K+ Views

Artificial Intelligence (AI) has been a hot topic for some time now & for good reason. AI has the potential to revolutionize many aspects of our everyday lives, from healthcare to education to transportation. The rise of artificial intelligence (AI), which has replaced all previous technologies, is being seen around ... Read More

Find Number of Array Elements Smaller than a Given Number in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 31-Jan-2023 16:47:10

2K+ Views

An array is a linear data structure in which elements are stored in contiguous memory locations. As per the problem statement, finding number elements smaller than a given number means we need to compare and count only the smaller elements in the array. Let’s explore the article to see how ... Read More

Find Elements Greater Than a Given Number In a Subarray in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 31-Jan-2023 16:36:13

675 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 given a sub array and a number and we have to find how many elements in this sub array are greater than that given ... Read More

Find Array Elements Which has at Least One Smaller Element in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 31-Jan-2023 15:28:10

236 Views

An array is a linear data structure in which elements are stored in contiguous memory locations. As per problem statement, we need to print all elements that have at least one smaller element. In simple terms we can say printing all elements of the array except the smallest one as ... Read More

Check One Array is Subset of Another Array in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 31-Jan-2023 15:23:01

5K+ 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 whether one array is subset of another array. An array is a subset of another array if all the elements of subarray ... Read More

Check a Subarray is Formed by Consecutive Integers from a Given Array in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 30-Jan-2023 16:49:28

735 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 a sub array is formed by consecutive integers from a given array of integers. The sub array refers to some segment ... Read More

Avoid These Mistakes While Learning Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 30-Jan-2023 16:37:51

227 Views

Java is one of the most popular programming languages in the world and is the language of choice for many developers and coders. With its wide variety of uses, including web development & mobile app development, it's no wonder that so many people are eager to learn how to work ... Read More

Get the Triplets in an Array Whose Sum is Equal to a Specific Number in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 19-Jan-2023 12:05:08

766 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 get all the triplets in the array whose sum is equal to a specific number. Here triplets refer to any three elements of ... Read More

Advertisements