How to Sort a nearly sorted (or K sorted) array in Java

By Mohit Goswami

In this tutorial, we will write the code for this most frequently asked interview question “Sort a nearly k-sorted array” in Java. Using Min Heap in Java We are going t.... Read More

Construct a Linked List using a 2D matrix in C++

By Kamlendra Pratap Singh

In this tutorial, you will learn how to construct a linked list using a double-dimensional matrix in C++. Let us have a look at the demonstration below to get the clear notion of t.... Read More

C++ program to swap two nibbles in a byte

By Aranya Banerjee

Each byte has 8 bits. Each nibble has 4 bits i.e, half the number of bits in a byte. The problem given above is to swap the two nibbles in a byte. For example, 16 in binary represe.... Read More

Train and evaluate TensorFlow models in Python

By Harini R

In this tutorial, we will focus on how to train and evaluate a TensorFlow model using Python. We need to train the model after performing all the preprocessing steps on the dataset.... Read More

Math Operations for Data Analysis in Python

By Megha J Panicker

Data Analysis is the process of extracting valuable information for data. In python, we have a number of tools to do that. We will first import the numpy library, this library has .... Read More

Rescale pixel intensities of an image in Python

By Megha J Panicker

In this tutorial, we will see how to rescale the pixel intensities of image. Colour images are arrays of pixel values of RED, GREEN, and BLUE. These RGB values range from 0 –.... Read More

Java program to Determine if Two Trees are Identical

By Adit Gupta

In this tutorial, I will be showing how to check if two trees are identical or not in Java. I will be using Java language to implement my approach. Let us get started. Check if two.... Read More

java.util.Currency methods with example

By Adit Gupta

Currency is a pre-defined class present in the util package of Java. ISO 4217 is an internationally accepted standard. It recognizes currency and its code from all over the world. .... Read More

Related Posts