Count ways to reach the n’th stair in Python

By Reetesh Kumar

In this tutorial, we’ll learn how to count the number of ways to reach the n’th stair in Python. We need to reach the top of the staircase which has n steps. At each st.... Read More

Python Program to print Zigzag Pattern

By Reetesh Kumar

In this tutorial, we will learn to print Zigzag Pattern in Python. Basically in a Zigzag pattern, we need to print numbers in sequential order in odd rows and reverse order in even.... Read More

C++ program to construct an expression tree

By Abhishek Sharma

In this tutorial, we will see how to construct an expression tree in C++. We will construct the tree from a given string of postfix expression. But first, let’s see what is a.... Read More

Matrix inversion without NumPy in Python

By Tushit Garg

This article teaches you how you can do matrix inversion without the use of NumPy in Python. The inversion of a matrix is useful in solving a system of linear equations. Though the.... Read More

Connect points with line in Matplotlib

By Tushit Garg

In this article, we are going to learn how we can connect points on a plot with a line in Matplotlib Python library. At times when working with a scatter plot, we need to connect a.... Read More

Difference between std::bind() and boost::bind() in C++

By Abhishek Sharma

If you are searching for the difference between std:: bind() and boost:: bind() you have come at the right place. Here in this article, I will provide you with the differences so t.... Read More

Read a line with delimiter until the end of each line in C++

By Abhishek Sharma

Learn how to read a line with delimiter until the end of each line in C++ with examples. In this tutorial, you will see how to read a line using a delimiter. A delimiter specifies .... Read More

How to check for Majority Element in a sorted array in Python

By Divya Junuthula

In this tutorial, we are going to learn how to check whether the given element is the majority element or not in the given sorted array in Python. First of all, we will learn what .... Read More