## Queries for number of elements on right and left

Given Q queries of three types where every query consists of a number. Add element num on the left Add element num on the right… Read More »

Given Q queries of three types where every query consists of a number. Add element num on the left Add element num on the right… Read More »

Given a string S consisting of lowercase characters(a-z) only, the task is to print a new string by rearranging the string in such a way… Read More »

Given two strings S1 and S2 ( size of S1 <= Size of S2 ). The task is to find the minimum number of characters… Read More »

Given a string of containing only L’s and R’s which represents left rotation and right rotation respectively. The task is to find the final direction… Read More »

Given a number m, find all numbers which have m digits and are a divisor of their right-rotation. Right-rotation of a number N is the… Read More »

Given a binary string str, the task is to print the numbers of steps required to convert it to one by the following operations: If… Read More »

Given an array of integers, The task is to find another integer such that, if all the elements of the array are subtracted individually from… Read More »

Given an array of numbers. The task is to check if it is possible to arrange all the numbers in a circle so that any… Read More »

Given a time in a 24-hour clock (military time), convert it to 12-hour clock format. Note: Midnight is 00:00:00 on a 24-hour clock and 12:00:00… Read More »

Given an array of N elements and each element is either 1 or 0. You need to make all the elements of the array equal… Read More »

Given a circular array of size N. The task is to check if, for every index i starting from 0 to N-1, there exists an… Read More »

Given a string of characters with opening and closing brackets. The task is to remove extra brackets from string and balance it. Examples: Input: str… Read More »

Given an array of N distinct elements, find the minimum number of swaps required to sort the array. Note: The problem is not asking to… Read More »

Given an array with size N. You are allowed to perform two types of operations on the given array as described below: Choose some position… Read More »

Given two arrays arr1[] and arr2[]. The task is to find the count of such elements in the first array whose at-least one factor is… Read More »