Python program to find Height of a complete binary tree (or Heap) with N nodes

By Karan Mittal

In this tutorial, we’ll be seeing how to find the height of a complete binary tree with n nodes in Python. Before seeing the code let’s first discuss what’s exact.... Read More

Difference between std::array and std::vector in C++

By HARI HARAN B

The std::vector is a container that implements a dynamic array and the std::array implements the static array. In this article, we shall learn the difference between std::array and.... Read More

Count number of characters in a string in Swift

By Khushi Aswani

In this tutorial, we will discuss how to count the number of characters in a given string in Swift. This task comes under the chapter on strings which is proved to be one of the us.... Read More

How to flatten tuple of list to tuple in Python

By Anubhav Aery

In this tutorial, we will be learning the steps to be followed in order to flatten tuple of list to tuple in Python. We will be using sum() function (with empty list as its argumen.... Read More

Get most frequent words from a web page in Python

By Anubhav Aery

In this tutorial, we will be web scrapping a website using Python to get the most frequent words from a web page. We will be using PyCharm IDE here. Prerequisites In order to build.... Read More

How to change tag names and attributes in HTML document using BeautifulSoup

By Riddhi Goyal

Here, we will learn how to change tag names and attributes in HTML document using BeautifulSoup Suppose there is a file named ws.html as follows: <!DOCTYPE html> <html>.... Read More

How to append values to excel sheet using Openpyxl

By Riddhi Goyal

Hello coders!! Here, we will learn how to append values to an excel sheet using openpyxl. To do this, we first need to import Workbook from openpyxl as follows: import openpyxl fro.... Read More

Pushback and print elements in a float vector in C++

By HARI HARAN B

A vector is an STL container and I’m sure many of you are already familiar with the usability of the vector with any datatype. In this article, we will look at the different ways.... Read More

Related Posts