## Basic Input / Output in C++

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 »

- Maximum absolute difference in an array
- Predict the winner in Coin Game
- Program to find the Nth Prime Number
- Check whether the triangle is valid or not if angles are given
- Check if it is possible to create a polygon with given n sides
- Check if the string contains consecutive letters and each letter occurs exactly once
- Elements greater than the previous and next element in an Array
- Capitalize the first and last character of each word in a string
- Count of buttons pressed in a keypad mobile
- Reduce the fraction to its lowest form
- Smallest and Largest Palindrome with N Digits
- Remove the first and last character of each word in a string
- Count of quadruplets with given Sum
- Determine the number of squares of unit area that a given line will pass through.
- Program to calculate Double Integration
- Check whether the given string is a valid identifier
- Increment odd positioned elements by 1 and decrement even positioned elements by 1 in an Array
- Find the volume of rectangular right wedge
- Number of positions such that adding K to the element is greater than sum of all other elements
- Count of elements whose absolute difference with the sum of all the other elements is greater than k
- Minimum steps required to convert the matrix into lower hessenberg matrix
- Blog | Programming Guidelines
- Program to calculate the number of odd days in given number of years
- Find number of magical pairs of string of length L
- Find the sum of the number of divisors
- Smallest Even number with N digits
- Find the sum of the first half and second half elements of an array
- Check whether Quadrilateral is valid or not if angles are given
- Largest and smallest digit of 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

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 comes 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 »

Important Terminology Database: Database is a collection of inter-related data which helps in efficient retrieval, insertion and deletion of data from database and organizes the data… Read More »

Although they both seem to do the same thing, there is a subtle difference between them. cout << endl : Inserts a new line and… Read More »

A function is a set of statements that take inputs, do some specific computation and produces output. The idea is to put some commonly or… Read More »