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 tutorial, We are going to learn, how to print all positive numbers from a list in Python. There are various ways to find all positive numbers from a list in Python. As we k.... Read More
In this article, you can learn how to shuffle elements of a tuple in Python. In Python, Tuple is used to store immutable objects. (i.e) the values cannot be changed. Consider an ex.... Read More
In this article, we will see a program to Get the last n items from an array in Java. I hope, you already have some idea about array if you are familiar with Java. An array is a .... 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
In this tutorial, we are going to learn how we can move all the files from one directory to another in C++. We will write a C++ program that can do our task. Here I am going to sho.... Read More