Mr. Satyabrata has Published 387 Articles

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

Mr. Satyabrata

Mr. Satyabrata

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

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

498 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

142 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

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

519 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

102 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

382 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

How to find all leaders in an array in Java?

Mr. Satyabrata

Mr. Satyabrata

Updated on 11-Jan-2023 11:30:25

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 leaders in an array. An element is a leader if it is greater than all the elements to its right side. Let’s ... Read More

Compare Two Different Files Line by Line in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 11-Jan-2023 11:28:39

4K+ Views

In this article, we will compare two different text files which are saved in our system. We will check line by line of each text file, by comparing those we can identify the similarities and differences. Let’s see how we can do it by using the Java programming language. To ... Read More

Find First and Last Word of a File Containing String in Java

Mr. Satyabrata

Mr. Satyabrata

Updated on 11-Jan-2023 11:09:40

5K+ Views

As per the problem statement, we need to find the first and last word of the given String. Let’s explore the article to see how it can be done by using Java programming language. To Show You Some Instances Instance-1 Suppose there is String “Java is a well-known high-level, class-based ... Read More

Advertisements