This tutorial is about the advantages of reference variables over pointer variables in C++. A reference variable is an alias for a variable whereas a pointer variable points to an .... Read More
Today we will be learning what setw() function in C++ is and how it’s used. This setw() function belongs to the iomanip library of C++. Syntax: setw() setw(int n) n is the pa.... Read More
Today we are going to perform reading operations on a CSV file using C++. Let’s learn how to read data from CSV file in C++. Reading a CSV file in C++ CSV file is a comma-sep.... Read More
In this tute, we will discuss the Range Minimum Query in Segment Tree using C++. Before heading into the tute, make sure that you’ve understood the sum of range in the segmen.... Read More
In this tute, we will discuss how to query the XOR of the given range in a segment tree using C++. Read till the end to get a clear idea of the Segment Tree. Let’s use the array.... Read More
In this tute, we will discuss Lazy propagation in Segment tree using C++. If you haven’t gone through the basics of implementing segment trees, head straight to sum of range .... Read More
Hello, today we would be learning how to sort elements in an array alphabetically in C++. So read on… Sort Array Elements Alphabetically in C++ We sort elements in a data set.... Read More
Hey guys, today we will be learning about shift operators and how they work in C++. What is a Shift Operator? Shifting is of 2 types: Left shift and Right shift. In the Left shift,.... Read More