## Scope of Variables in C++

In general, the scope is defined as the extent up to which something can be worked with. In programming also the scope of a variable… Read More »

- Find the Mth element of the Array after K left rotations
- Find temperature of missing days using given sum and average
- Program to print window pattern
- Number of ways to select exactly K even numbers from given Array
- Area of a Square | Using Side, Diagonal and Perimeter
- Find indices of all local maxima and local minima in an Array
- Find maximum of minimums from Layers of Matrix using numbers 1 to N^2
- Perfect Square factors of a Number
- Find minimum moves to bring all elements in one cell of a matrix
- Count of all pairs in an Array with minimum absolute difference
- Count of integral coordinates that lies inside a Square
- Check if given string is a substring of string formed by repeated concatenation of z to a
- Smallest number greater than Y with sum of digits equal to X
- Number of ways to sum up a total of N from limited denominations
- Min operations to reduce N by multiplying by any number or taking square root
- Create matrix whose sum of diagonals in each sub matrix is even
- Nth angle of a Polygon whose initial angle and per angle increment is given
- Check if N contains all digits as K in base B
- Identical Splitting in a rectangular grid
- Check if the given string is linear or not
- Angle between a Pair of Lines in 3D
- Minimum cost to convert given string to consist of only vowels
- Find two numbers whose sum is N and does not contain any digit as K
- Program to Print K using Alphabets
- Divide N into K parts in the form (X, 2X, ... , KX) for some value of X
- Find N random points within a Circle

In general, the scope is defined as the extent up to which something can be worked with. In programming also the scope of a variable… Read More »

Given a string, write a function that converts it either from lower to upper case or from upper to lower case using the bitwise operators… Read More »

Array- Basics In C/C++, we can define multidimensional arrays in simple words as array of arrays. Data in multidimensional arrays are stored in tabular form… Read More »

C++ comes with libraries which provides us with many ways for performing input and output. In C++ input and output is performed in the form… Read More »

There come situations in real life when we need to make some decisions and based on these decisions, we decide what should we do next.… Read More »

All variables use data-type during declaration to restrict the type of data to be stored. Therefore, we can say that data types are used to… Read More »

Operators are the foundation of any programming language. Thus the functionality of C/C++ programming language is incomplete without the use of operators. We can define… Read More »

We are given an array and we have to calculate the product of an array using both iterative and recursive method. Examples : Input :… Read More »

Learning C++ programming can be simplified into: Writing your program in a text-editor and saving it with correct extension(.CPP, .C, .CP) Compiling your program using a… Read More »

C++ is a general-purpose programming language and widely used nowadays for competitive programming. It has imperative, object-oriented and generic programming features. C++ runs on lots… Read More »

Given an array, the task is to find average of that array. Average is the sum of array elements divided by the number of elements.… Read More »

Given 4 integers a, b, y, and x, where x can only either 0 and 1 only. The ask is as follows: If ‘x’ is… Read More »

Electronic and Digital systems may use a variety of different number systems, (e.g. Decimal, Hexadecimal, Octal, Binary). A number N in base or radix b… Read More »

Loops in programming come into use when we need to repeatedly execute a block of statements. For example: Suppose we want to print “Hello World”… Read More »

Problem: Given an array arr[] of n elements, write a function to search a given element x in arr[]. Examples : Input : arr[] =… Read More »