How to shuffle elements of a tuple in Python

By Karthik Balaji

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

Get last n items from an array in Java

By Shakshi Parekh

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

Lazy Propagation in Segment Tree using C++

By Keshav J

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

How to Sort Array Elements Alphabetically in C++

By Aayush Kumaria

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

How does Shift Operators Work in C++

By Aayush Kumaria

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

Move all the files from one directory to another in C++

By Ranjeet V

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

Sum of range in Segment Tree using C++

By Keshav J

In this tute, we will discuss how to query the sum 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 ar.... Read More

Node and range updates in Segment Tree using C++

By Keshav J

In this tute, we will discuss node & range updates in segment tree using C++. To get clear knowledge, read till the end. Before getting into updates, make sure you get the basi.... Read More