## Count & Toggle queries on Binary Array

This is the concept where both count and toggle queries are applied to the binary array. Count Query is used when there is a need to calculate a number of specific bits it appears in any piece of code. We ...

## What is Array Decay in C++ & how to prevent it?

In this article, we will learn about the concept of array decay in C++ and the various methods by which it can be prevented. The loss of size and dimensions of our array is called an array decay. It can lead ...

## Implementation of Deque using a circular array

To implement Deque employing a circular array we should track 2 pointer front and rear within the array, all the operations are on these 2 pointers. The which means of circular array will be understood by the image below. In ...

## Mutating & Non-Mutating algorithms in C++

C++ STL has a bunch of algorithms in itself. Sorting, numeric, removal, modifying and non-modifying algorithms are some examples. In the article let’s talk about the famous mutating and non-mutating algorithms in C++. Mutating Algorithms: These algorithms are modifying algorithms ...

## Difference between ArrayList & LinkedList that everyone should know

One of the most famous interview questions for beginners as well as Java developers with two-three years of experience is the difference between ArrayList and LinkedList. Before getting into differences, let’s understand the similarities between ArrayList and LinkedList so that ...

## Explained: Disjoint-Set Data Structure

We will discuss important mathematics concept sets first to represent equivalence sets of elements where the order doesn’t matter. The Disjoint sets ADT is the most used data structure for graph problems. Let us first discuss about sets and their ...

## Difference between Array, Queue & Stack

An array is a random access data structure, where each element can be accessed directly and in constant time. A typical illustration of random access is a book – each page of the book can be open independently of others. Random access ...

## C++ Programming and STL Facts

Most coders use C++ language for competitive programming. It is used widely because of its reliability, faster execution, short snippets, etc. Easy availability of the tutorials in c++ makes it more adaptive by coders. C++ STL is the backbone of ...