Adjacency Matrix representation of graph in C++

By Himanshu Raj

An adjacency matrix is a square matrix used to represent a finite graph. It is a way of representing a graph as a matrix of booleans (0’s and 1’s). The boolean value of.... Read More

Next Smaller Number to Right for each element of a list using Stack in Python

By Amrit Pratyay

In this tutorial, we will return the list of the next smaller number to right for each element of a list in Python. Problem Statement: Given a list, find the next smaller number to.... Read More

Find unique lines from two .txt files and store the unique new lines in Python

By Saruque Ahamed Mollick

In this tutorial, we will learn how to find only the unique lines from the two .txt files (text files) in Python. We can also say that we will remove the lines that exist in both o.... Read More

C++ program to change the time format from 12 hours to 24 hours

By Gagana Gonchikar N

In this tutorial, we will learn how to change the time format from 12 hours to 24 hours in C++ programming. In this program, the user needs to enter the input in the 12 hours forma.... Read More

Casting and Conversion in Java

By Arihant Jain

First of all, let’s understand what typecasting is. In Java, Typecasting is a process that converts one data type into another data type. It is done in both ways manually and.... Read More

Count total number of set bits using Python

By Amrit Pratyay

In this tutorial, we will find the total number of set bits present in an integer with Python program. This question will show the importance of the Bit Manipulation concept. What .... Read More

JSON Encoding and Decoding in PHP

By Abinash Reddy

JSON stands for JavaScript Object Notation. It is an open, lightweight, text-based standard format developed for the exchange of human-readable data. In this article, we will explo.... Read More

Difference between interface and class in Java

By Abinash Reddy

This article, explains the difference between an interface and a class in Java. Class A class is a user-defined blueprint for creating objects. The “class” keyword is u.... Read More