Rudradev Das has Published 78 Articles

Java Program to count inversions of size three in a given array

Rudradev Das

Rudradev Das

Updated on 23-Jan-2025 23:06:37

244 Views

In this article, we will learn how to count inversions of size three in a given array. The goal is to find how many triplets (i, j, k) exist such that i < j < k and arr[i] > arr[j] > arr[k].Understanding Inversion Count Inversion count is a step-counting method by ... Read More

Java Program to Show Different Access Levels

Rudradev Das

Rudradev Das

Updated on 02-Jan-2025 19:12:41

233 Views

In this article, we will explore the use of access modifiers in Java by demonstrating their functionality in different scenarios. Access Modifiers Access modifiers are used to set the feature of visibility of some particular classes, interfaces, variables, methods, constructors, data members, and the setter methods in Java programming language. ... Read More

Java Program To Reverse A Number And Check If It Is A Palindrome Number

Rudradev Das

Rudradev Das

Updated on 13-Dec-2024 21:52:25

3K+ Views

What is a Palindrome Number? If a number is given (two, three or four-digit number) and reversing each individual number with the positions from front to back and then vice versa , and then if the number output is the same after reversing all the elements then it is said ... Read More

Java Program to Represent Linear Equations in Matrix Form

Rudradev Das

Rudradev Das

Updated on 23-Nov-2024 03:44:51

515 Views

In this segment of Java programming, we are going to learn and discover certain programs by which we can represent linear equations in Matrix form. To do these programs, we first have to learn about linear equations and Matrix forms, their types, and how they are solved by simple mathematical ... Read More

Java program to show inherited constructor calls parent constructor by default

Rudradev Das

Rudradev Das

Updated on 18-Nov-2024 22:30:58

289 Views

In this article, we will learn about constructors in Java. Constructors initialize objects when they are created. We will also see how the parent constructor is called in inheritance. Problem StatementWe will demonstrate possible approaches to show how the inherited constructor calls the parent constructor by default.Different approaches The ... Read More

Java program to solve set cover problem

Rudradev Das

Rudradev Das

Updated on 11-Nov-2024 19:16:40

590 Views

The set covering is a well-known NP-hard problem in the combinational optimization technique. We call the set cover problem NP-Hard because there is no polynomial real-time solution available for this particular problem. An algorithm called greedy heuristic is a well-known process for the set cover problem. Here is an example ... Read More

Java program to set minimum and maximum heap size

Rudradev Das

Rudradev Das

Updated on 15-Oct-2024 10:39:06

683 Views

The Java heap is a particular memory area which is used to store the objects and represent them as or by an instance in Java Virtual Machine. The Java heap can be shared between two threads as long as the environment is occupied by some running applications. The heaps are ... Read More

Java System.nanoTime() vs System.currentTimeMillis

Rudradev Das

Rudradev Das

Updated on 07-Aug-2024 21:46:13

1K+ Views

What are the Time Operations in Java? There are two-time operations provided by the Java environment. For time-related operations, users can use these operations. System.nanoTime() ... Read More

Java Program to Segregate 0s on Left Side & 1s on Right Side of the Array

Rudradev Das

Rudradev Das

Updated on 06-Aug-2024 22:37:14

1K+ Views

Segregation is a process in the field of software engineering where a code is forced to depend on those methods that are not in use. The segregation interface is known as ISP. It splits the interfaces that are vast in nature. In a Java environment, there are lots of advantages ... Read More

Java Program to Save a String to a File

Rudradev Das

Rudradev Das

Updated on 24-Jul-2024 21:54:31

3K+ Views

String, the series of characters, used in Java programming enable to save memory consumption and boost the performance. We can save a string to a file using Java program can be initiated in multiple ways and has been introduced in Java version 11. Four parameters can be used to save ... Read More

1 2 3 4 5 ... 8 Next
Advertisements