Problem Statement You will be given an array A of integers containing N elements. All the elements inside the array are unique and in the range of 1 to N,...
Problem Statement You will be given an array of N distinct elements. The minimum value of N is 2. In every subarray of the given array, you have to find...
Problem Statment You are given a string. This string contains many words that are space separated. You have to reverse each word in the string individually. Examples The input string...
In computer science, a stack is an abstract data type that represents a collection of elements, where the addition or removal of elements follows a Last-In-First-Out (LIFO) order. That is,...
Problem statement Given an array of integers of size n . You have to delete every element which is smaller than the next element or become smaller than the next...