Convert comma separated string to vector in C++

By Harsh Singh

Given a comma-separated string, we want to convert it to a vector in C++. Example: String: "Hey,there,Howare,You" Vector elements: "Hey" "There" "Howare" "You" First Approach: In t.... Read More

Get the nth character of a string in Swift

By Khushi Aswani

In this tutorial, we will work on the task of getting the nth character from a given string as the title says it all, to retrieve a particular character present at a specific posit.... Read More

Check whether a binary tree is a full binary tree or not in Python

By Ambuj Verma

In this tutorial, we learn about the Binary tree and how to check whether a given Binary tree is a full Binary tree or not. Example:                     1:        (a).... Read More

Random Tree generator using Prufer Sequence in C++

By Monjil Chakraborty

First, we need to understand the question and what is asked here. We are here provided with an integer N first. The task we have in our hands here is to create a Prufer Sequence, .... Read More

NumPy ndarray.tobytes() function in Python

By Muskan Bani

This post explains the ndarray.tobytes() function in Python. We will also go through an example and see the process in work. The numpy.ndarray.tobytes() method creates Python chara.... Read More

Purpose of meshgrid in Python

By Kovid Bhatt

In this text, we will be understanding the concept of the meshgrid command in detail and how to properly use Python’s meshgrid function. We will then also learn how to plot d.... Read More

The if and else statements in C++

By HARI HARAN B

Suppose we may want to execute a particular block of code based on a specific condition and another block if the condition is false. This is where if-else statements are so importa.... Read More

Distance between two points based on latitude/longitude in Python

By Naman Maheshwari

In this Tutorial, we here to find the Distance between two points based on latitude and longitude in Python. Distance between two coordinates of different points Before starting th.... Read More

Related Posts