## Scope of Variables in C++

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

- Maximum absolute difference in an array
- Program to find the Nth Prime Number
- Predict the winner in Coin Game
- Check whether the triangle is valid or not if angles are given
- Count of quadruplets with given Sum
- Check whether the given string is a valid identifier
- Minimum steps required to convert the matrix into lower hessenberg matrix
- Largest and smallest digit of a number
- Count of elements whose absolute difference with the sum of all the other elements is greater than k
- Find the volume of rectangular right wedge
- Blog | Programming Guidelines
- Number of positions such that adding K to the element is greater than sum of all other elements
- Find the sum of the number of divisors
- Find number of magical pairs of string of length L
- Find the sum of the first half and second half elements of an array
- Find the character made by adding all the characters of the given string
- Check whether Quadrilateral is valid or not if angles are given
- Count the number of occurrences of a particular digit in a number
- Ratio of the distance between the centers of the circles and the point of intersection of two direct common tangents to the circles
- Compare sum of first N-1 elements to Nth element of an array
- Find the first N integers such that the sum of their digits is equal to 10
- Minimum number of steps to convert a given matrix into Upper Hessenberg matrix
- Generate an array having Bitwise AND of the previous and the next element
- Find the height of a right-angled triangle whose area is X times its base
- Find the sum of Eigen Values of the given N*N matrix
- Find the remainder when First digit of a number is divided by its Last digit
- Program to find the number of men initially
- Distance between two parallel lines
- Area of triangle formed by the axes of co-ordinates and a given straight line
- Find area of the larger circle when radius of the smaller circle and difference in the area is given

In general, scope is defined as the extent upto which something can be worked with. In programming also scope of a variable is defined as… 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 many ways for performing input and output. In C++ input and output is performed in the form of… 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 comes 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 »