Skip to content

Category Archives: C++ Programs

Given an array arr[] of integers and another integer D, the task is to perform D left rotations on the array and print the modified… Read More
Given a matrix with most of its elements as 0, convert this matrix to sparse matrix in C++Examples:  Input: Matrix: 0 1 1 1 2… Read More
Given a map, the task is to swap the Keys of this map with its values, in C++. Examples: Input: map = {'e', 1 },… Read More
Given a tree of distinct nodes N with N-1 edges and a pair of nodes P. The task is to find and print the path… Read More
Given a binary tree. The task is to find the value of the deep­est node in the given binary tree. Examples:  Input: Root of below… Read More
Given four integers A, B, C and D which represents the four angles of a Quadrilateral in degrees. The task is to check whether the… Read More
Given an array of strings arr[], the task is to find the largest string in the array which is made up of the other strings… Read More
Given a string str containing lowercase alphabets, the task is to count the sub-strings that contain all the vowels at-least one time and there are… Read More
Given a Binary Tree, the task is to flatten it in order of ZigZag traversal of the tree. In the flattened binary tree, the left… Read More
Multidimensional maps are used when we want to map a value to a combination of keys. The key can be of any data type, including… Read More
Given four integers a, b, c and d. The task is to find the number X which when added to the numbers a and b… Read More
graphics.h library is used to include and facilitate graphical operations in the program. graphics.h functions can be used to draw different shapes, display text in… Read More
Given a string Str, the task is to remove first adjacent pairs of similar characters until we can. Note: Remove adjacent characters to get a new… Read More
Given N-sided polygon we need to find the number of triangles formed by joining the vertices of the given polygon with exactly one side being… Read More
ADALINE (Adaptive Linear Neuron or later Adaptive Linear Element) is an early single-layer artificial neural network and the name of the physical device that implemented… Read More

Start Your Coding Journey Now!