# Category Archives: Data Structures

Given an array arr[] of size N, the task is to find the minimum number of jumps to reach the last index of the array… Read More
Given a binary string S and a string of non-zero digits P of length N, the task is to maximize the sum using the given… Read More
Given an undirected graph of N node, where nodes are numbered from 1 to N, and an array of edges, where edges[i] = {edgeType, u,… Read More
Given an array arr[] having positive integers of size N, and a non-negative integer K, the task is to find the minimum number of division… Read More
Given numeric string str, the task is to remove all the leading zeros from a given string. If the string contains only zeros, then print… Read More
Given a tree with N nodes where node 1 is the root, the task is to solve the queries of form {u, k} and find… Read More
Given a string W, and two arrays X[] and B[] of size N each where the ASCII value of character X[i] is redefined to B[i].… Read More
You are given an array A[] of size N, the task is to divide the array into exactly three subarrays such that every element belongs… Read More
You are given a binary string S of size N consisting of characters 0 and/or 1. You may remove several characters from the beginning or… Read More
It is absolutely possible to develop a stack allocator that completely complies with C++11 and C++14. However, you must take into account some of the… Read More
What is the backspace terminal control character? In this article, we will discuss about the backspace terminal control character. It is used to move the… Read More
Given an array A[] of size N. In each step reduce an element to 0 and decrement all the non-zero elements by 1 till all… Read More
What is a Matrix? A matrix is a two-dimensional array that consists of rows and columns. It is an arrangement of elements in horizontal or… Read More
Given an arr[] of positive integers and start[] and end[] arrays of length L, Which contains the start and end indexes of L number of… Read More
Given a binary array A[] of size N, the task is to check whether the array can be converted into a palindrome by flipping two… Read More