Vector rbegin( ) and rend( ) function in C++

By Neeraj Dusa

In this tutorial, we will understand how to use rbegin( ) and rend( ) functions in C++ STL. In C++, we have vectors that can automatically add or decrease the size which doesn̵.... Read More

Iterate vector backwards in C++

By Neeraj Dusa

In this tutorial, one can get to know how to iterate a vector from backward in C++. There are 3 methods to iterate a vector backward. In arrays, if we wanted to increase or decreas.... Read More

How to split data into training and testing in Python without sklearn

By Kanduri Jayanth Sri Ram

Dataset splitting is essential to overcome underfitting and overfitting. In this tutorial, you will learn how to split data into training and testing in python without sklearn. Spl.... Read More

How to check whether an array is empty or not in Java

By Subhojeet Ghosh

In this tutorial, we will learn how can we check whether an array is empty or not in Java. First and foremost, let’s discuss what an array is. An array can be defined as a linear.... Read More

How to calculate area of triangle in Python?

By Nikhil Vaddipati

Hello readers, today we are going to discuss how the area of a triangle is calculated in Python. Calculating Area of Triangle in Python Case1: If the length of the base and height .... Read More

How to print reverse tuple in Python

By Nikhil Vaddipati

Hello readers, today we are going to discuss how to print reverse tuple in Python. Printing reverse tuple in Python Let’s consider a tuple tup. tup = (1,2,3,4,5,6) Our goal i.... Read More

Check if a value exists in an array in C++

By Aastha Jain

In this tutorial, we will learn how to check the presence of a value in an array in C++. So let’s get started. An array is a group of similar types of data items that can be .... Read More

string::npos in C++

By Ankur Sinha

In this tutorial, We are going to learn about the string:: npos using C++. Let us know more about it. What is string::npos? It is a static member value with the maximum value for a.... Read More

Related Posts