Find Pair with given sum and maximum shortest distance from end in Python

By Taanvi Goyal

In this given problem we have to find a pair with a given sum and maximum shortest distance from the end. Here we have an array size A with contains all A integer values and anothe.... Read More

Set all elements of vector to 0 in C++

By Mahak Chawla

Given a vector of elements, the task is to set all elements to zero in C++. When a vector is created, all its values are initialized to zero. The following code will help you under.... Read More

Remove empty rows from excel file using openpyxl Python

By yaswanth vakkala

In this tutorial, let’s see how to remove empty rows from an excel file using openpyxl in Python. openpyxl is a popular Python library used in reading or writing an excel fil.... Read More

Count number of occurrences of an item in an array in Swift

By Khushi Aswani

In this tutorial, we will discuss how to count the number of occurrences of an item in an array in Swift. It simply means to show the number of occurrences of any element in an arr.... Read More

Replace spaces with backslashes in Python

By yaswanth vakkala

In this article, we will learn how to replace all the spaces with backslashes in Python. We will use a Python string to store some text data with spaces and convert those spaces to.... Read More

Plotting Equations with Python in Matplotlib

By Tushit Garg

In this article, we are going to cover the plotting of some basic equations in Python using matplotlib module. The goal is to plot a function in x i.e y  = f(x). Example y = x2, y.... Read More

How to draw a line for average value with matplotlib in Python?

By Tushit Garg

Hello everyone! This article is based on some exciting graph plotting problems and their solutions with Python programming. Let us consider one of those problems which you might pr.... Read More

Iterate through map in C++

By Mahak Chawla

In this tutorial, we will discuss how to iterate over a map in C++. There are multiple ways by which we can iterate through a map. We will understand various ways one by one. 1. Us.... Read More

Related Posts